-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (42 loc) · 1.08 KB
/
test.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
name: Test
on: push
permissions:
pull-requests: write
checks: write
contents: write
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- uses: actions/checkout@v4
- uses: jwalton/gh-find-current-pr@v1
id: findPr
- name: Setup yarn
run: |
corepack enable
yarn set version stable
- uses: actions/setup-node@v4
with:
node-version: 20.11.x
cache: "yarn"
- name: Install packages
run: yarn install --immutable
- name: Check format
run: yarn format:ci
- name: Run linter
run: yarn lint:ci
- name: Run tests
uses: ArtiomTr/[email protected]
with:
skip-step: install
test-script: yarn test
annotations: coverage
base-coverage-file: report.json
prnumber: ${{ steps.findPr.outputs.number }}
- name: Audit dependencies
run: yarn npm audit