Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit all github jobs name #369

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ permissions:
contents: read

jobs:
lint:
lint-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Lint
- name: Lint backend
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pre-commit
pre-commit run --all-files ruff
test:
test-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ on:
paths:
- 'frontend/**'
- Makefile
- .github/workflows/lint-frontend.yml
- .github/workflows/frontend.yml

permissions:
contents: read
pull-requests: write

jobs:
lint:
lint-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Lint
- name: Lint frontend
run: |
cd frontend
Expand All @@ -30,14 +30,14 @@ jobs:
npm run format
npm run style-lint
test:
test-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Test
- name: Test frontend
run: |
cd frontend
npm install
Expand All @@ -49,14 +49,14 @@ jobs:
working-directory: ./frontend
pr-number: ${{ github.event.number }}

build:
build-frontend:
runs-on: ubuntu-latest
needs: test
needs: test-frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Build
- name: Build frontend
shell: bash
run: make build-frontend
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ permissions:
contents: read

jobs:
lint:
lint-all-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Lint
- name: Lint all files
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pre-commit
Expand Down