Skip to content

Commit

Permalink
Explicit all github jobs name (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev authored Sep 23, 2024
1 parent 879e5ce commit fdebfc8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
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

0 comments on commit fdebfc8

Please sign in to comment.