generated from fingerprintjs/library-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (31 loc) · 846 Bytes
/
build.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
# Reference on this file: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: Lint, build and test
on:
pull_request:
jobs:
build:
name: Lint, build and test
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
**/node_modules
!**/dist/node_modules
key: nodemodules-${{ hashFiles('**/yarn.lock') }}
restore-keys: nodemodules-
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Install Node packages
run: yarn install
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Tests
run: yarn test