-
-
Notifications
You must be signed in to change notification settings - Fork 3k
56 lines (49 loc) · 1.32 KB
/
mocha.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
54
55
56
name: Tests
on:
push:
branches:
- main
paths-ignore: ['*.md', 'docs/**']
pull_request:
branches:
- main
paths-ignore: ['*.md', 'docs/**']
permissions:
contents: read
jobs:
lint:
uses: ./.github/workflows/npm-script.yml
with:
npm-script: lint
smoke:
uses: ./.github/workflows/npm-script.yml
with:
os: 'ubuntu-latest,windows-2019'
node-versions: '14,16,18,20,22'
npm-script: test:smoke
test-node:
# TODO: Restore "mocha-github-actions-reporter" style reporting without relying on third party module
uses: ./.github/workflows/npm-script.yml
needs: smoke
with:
os: 'ubuntu-latest,windows-2019'
node-versions: '14,16,18,20,22'
npm-script: test:node
coverage: true
test-browser-local:
needs: smoke
uses: ./.github/workflows/npm-script.yml
with:
browsers: ChromeHeadless
npm-script: test:browser
test-browser-saucelabs:
# Don't run forked 'pull_request' without saucelabs token
if: github.event_name == 'push' || !github.event.pull_request.head.repo.fork
needs:
- smoke
- test-browser-local
uses: ./.github/workflows/npm-script.yml
secrets: inherit
with:
browsers: 'firefox@latest,chrome@latest,MicrosoftEdge@latest,safari@latest'
npm-script: test:browser