forked from mauriciolauffer/wdio-qunit-service
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.34 KB
/
test.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: Test
on:
push:
branches: [main]
pull_request:
permissions: read-all
jobs:
test:
name: Test [Node ${{ matrix.node-version }}]
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
permissions:
security-events: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm ci --ignore-scripts
- name: "Commit Lint"
run: npm run
- name: Build
run: npm run build
if: success() || failure()
- name: "Test: ESM"
run: npm run test:esm
- name: "Test: Features"
run: npm run test:features
if: success() || failure()
- name: "Test: QUnit"
run: npm run test:qunit
if: success() || failure()
- name: "Test: No:Specs"
run: npm run test:no:specs
if: success() || failure()
- name: "Test: CJS"
run: npm run test:cjs
if: success() || failure()
- name: "Lint"
run: npm run lint:ci
if: success() || failure()
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: eslint.sarif
if: success() || failure()