-
Notifications
You must be signed in to change notification settings - Fork 32
34 lines (30 loc) · 744 Bytes
/
node.js.yml
File metadata and controls
34 lines (30 loc) · 744 Bytes
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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/cache@v5
id: cache-node
with:
path: |
node_modules
example/node_modules
exampleMacos/node_modules
key: ${{ hashFiles('package.json', 'yarn.lock', 'example/package.json') }}
- run: corepack enable
- uses: actions/setup-node@v5
with:
package-manager-cache: false
node-version: 24
- run: yarn install
if: steps.cache-node.outputs.cache-hit != 'true'
- run: yarn prepare
- run: yarn lint
- run: yarn typecheck
- run: yarn test --coverage