Skip to content

Commit

Permalink
rename workflow & jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-sg committed Dec 13, 2024
1 parent f8e4b16 commit 29f96ff
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Frontend Lint/Test/Build
name: Frontend
on:
pull_request:
pull_request

jobs:
# In order to be able to have required checks, a workflow can't be entirely
# skipped: see https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
paths-filter:
name: "Filter Paths"
runs-on: ubuntu-latest
outputs:
src: ${{ steps.filter.outputs.src }}
Expand All @@ -19,9 +20,10 @@ jobs:
- 'frontend/*.json'
- 'frontend/*.js'
- 'frontend/*.ts'
- '.github/workflows/frontend-build-check.yaml'
- '.github/workflows/frontend-lint-test-build.yaml'
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
needs: paths-filter
if: needs.paths-filter.outputs.src == 'true'
Expand Down Expand Up @@ -80,6 +82,7 @@ jobs:
run: yarn test

integration-tests:
name: Integration Tests
needs: paths-filter
if: needs.paths-filter.outputs.src == 'true'
timeout-minutes: 60
Expand Down Expand Up @@ -155,6 +158,7 @@ jobs:
retention-days: 30

lint:
name: Lint
runs-on: ubuntu-latest
needs: paths-filter
if: needs.paths-filter.outputs.src == 'true'
Expand Down Expand Up @@ -184,6 +188,7 @@ jobs:
run: yarn lint:check

localize:
name: Localize
runs-on: ubuntu-latest
needs: paths-filter
if: needs.paths-filter.outputs.src == 'true'
Expand Down Expand Up @@ -213,6 +218,7 @@ jobs:
run: yarn localize:build

build:
name: Build
runs-on: ubuntu-latest
needs: paths-filter
if: needs.paths-filter.outputs.src == 'true'
Expand Down

0 comments on commit 29f96ff

Please sign in to comment.