-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 975 Bytes
/
node-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Node.js Lint and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Lint_And_Test:
runs-on: ubuntu-latest
strategy:
matrix:
# List the node versions we want to support here, and it will test all of them
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
working-directory: ./apps/frontend
run: npm ci
- name: Run ESLint
working-directory: ./apps/frontend
run: npm run lint
- name: Run Typescript Check
working-directory: ./apps/frontend
run: npm run type-check
- name: Run NPM Test
working-directory: ./apps/frontend
# TODO is this the right command to run? we'll know once we have tests
run: npm test