-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (39 loc) · 1.05 KB
/
ci.yml
File metadata and controls
42 lines (39 loc) · 1.05 KB
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
38
39
40
41
42
name: CI
on: [push]
jobs:
test:
name: Test on node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: true
matrix:
node_version:
- 22
os:
- ubuntu-latest
architecture:
- x64
steps:
- uses: actions/checkout@v3
- name: Setup node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
architecture: ${{ matrix.architecture }}
registry-url: https://registry.npmjs.org
- name: Cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: install
run: yarn install --frozen-lockfile
- name: lint
run: yarn lint
- name: build
run: yarn build
- name: test
run: yarn test
env:
FORCE_EXIT: true