-
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.21 KB
/
testing.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Continuous Integration
on:
push:
branches:
- main
- develop
pull_request:
branches: [ '*' ]
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
checks: write
pull-requests: write
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'yarn'
- name: Install node modules
run: |
yarn install --immutable --check-cache
- name: Run ESLint
continue-on-error: true
run: |
yarn lint --max-warnings=0 --format @microsoft/eslint-formatter-sarif --output-file eslint-results.sarif
- name: Upload ESLint analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: eslint-results.sarif
wait-for-processing: true
- name: Run tests
uses: willcaul/jest-github-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
test-command: "yarn test"