-
-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (42 loc) · 1.29 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
name: CI
on:
[push, pull_request, workflow_dispatch]
jobs:
tests:
uses: ljharb/actions/.github/workflows/node.yml@32a09e8b5346216e84d4cdf4769c70af9903b536
with:
range: '>= 0.8'
type: majors
build-command: npm run build:tests
build-output-dir: __tests-built__,lib
command: npm run tests-built
flow:
name: Flow type checking
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ljharb/actions/node/install@32a09e8b5346216e84d4cdf4769c70af9903b536
- name: Flow type check
run: npm run flow
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ljharb/actions/node/install@32a09e8b5346216e84d4cdf4769c70af9903b536
- name: Run ESLint
run: npm run lint
diff-breakUpAriaJSON:
name: Compare JSON to src output
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ljharb/actions/node/install@32a09e8b5346216e84d4cdf4769c70af9903b536
- name: Run diff check for the breakUpAriaJSON script
run: node scripts/buildModelModules.js && git diff --exit-code -- src
finisher:
name: all checks
needs: [tests, flow, eslint, diff-breakUpAriaJSON]
runs-on: ubuntu-latest
steps:
- run: true