Skip to content

Commit

Permalink
[#512] chore: split jobs to work in parallel; add emoji to label actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Mar 19, 2024
1 parent 4fc9029 commit 892cfb5
Showing 1 changed file with 44 additions and 6 deletions.
50 changes: 44 additions & 6 deletions .github/workflows/code_check_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defaults:
working-directory: govtool/frontend

jobs:
code_check:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -28,13 +28,51 @@ jobs:
with:
node-version-file: "govtool/frontend/.nvmrc"

- name: Run Frontend Test
- name: 🧪 Test
run: |
npm install
npm run test
- name: Lint
run: npm run lint
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
with:
path: govtool/frontend/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('govtool/frontend/package-lock.json') }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: "govtool/frontend/.nvmrc"

- name: 👕 Lint
run: /
npm install
npm run lint

- name: Type Check
run: npm run tsc
type_check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
with:
path: govtool/frontend/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('govtool/frontend/package-lock.json') }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: "govtool/frontend/.nvmrc"

- name: 🔍 Type Check
run: /
npm install
npm run lint

0 comments on commit 892cfb5

Please sign in to comment.