-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 904 Bytes
/
ci.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
name: CI
on: [merge_group, push, pull_request, workflow_dispatch]
jobs:
build_test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout Repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@aca7b64a59c0063db8564e0ffdadd3887f1cbae5
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Cache Dependencies
uses: actions/cache@8469c94c6a180dfb41a1bd7e1b46ac557ea124f1
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
run: yarn install
- name: Run Linting
run: yarn lint
- name: Run Unit Tests
run: yarn test