|
6 | 6 | - "!dependabot/**"
|
7 | 7 | pull_request:
|
8 | 8 | workflow_dispatch:
|
| 9 | + |
9 | 10 | jobs:
|
10 |
| - jest: |
11 |
| - name: Jest (Node v${{ matrix.node }}) |
12 |
| - runs-on: ubuntu-latest |
13 |
| - strategy: |
14 |
| - fail-fast: false |
15 |
| - matrix: |
16 |
| - node: [14, 16, 17] |
17 |
| - steps: |
18 |
| - - name: Checkout |
19 |
| - uses: actions/checkout@v3 |
20 |
| - - name: Load Node version ${{ matrix.node }} |
21 |
| - uses: actions/setup-node@v3 |
22 |
| - with: |
23 |
| - node-version: ${{ matrix.node }} |
24 |
| - cache: npm |
25 |
| - - name: Npm Install |
26 |
| - run: npm ci |
27 |
| - - name: Run Jest |
28 |
| - run: npm run test:ci |
29 |
| - - name: Run Coveralls |
30 |
| - uses: coverallsapp/[email protected] |
31 |
| - if: matrix.node == '16' |
32 |
| - with: |
33 |
| - github-token: ${{ secrets.GITHUB_TOKEN }} |
34 |
| - path-to-lcov: ./reports/lcov.info |
| 11 | + tests: |
| 12 | + uses: ljharb/actions/.github/workflows/node.yml@main |
| 13 | + with: |
| 14 | + range: '>= 0.4' |
| 15 | + type: majors |
| 16 | + command: npm run tests-only |
| 17 | + |
35 | 18 | flow:
|
36 | 19 | name: Flow type checking
|
37 | 20 | runs-on: ubuntu-latest
|
38 | 21 | steps:
|
39 |
| - - name: Checkout |
40 |
| - uses: actions/checkout@v3 |
41 |
| - - name: Load Node |
42 |
| - uses: actions/setup-node@v3 |
| 22 | + - uses: actions/checkout@v4 |
| 23 | + - uses: ljharb/actions/node/install@main |
43 | 24 | with:
|
44 |
| - cache: npm |
45 |
| - - name: Npm Install |
46 |
| - run: npm ci |
| 25 | + use-npm-ci: true |
47 | 26 | - name: Flow type check
|
48 | 27 | run: npm run flow
|
| 28 | + |
49 | 29 | eslint:
|
50 |
| - name: ESLint (Node v${{ matrix.node }}) |
| 30 | + name: ESLint |
51 | 31 | runs-on: ubuntu-latest
|
52 |
| - strategy: |
53 |
| - matrix: |
54 |
| - node: [16] |
55 | 32 | steps:
|
56 |
| - - name: Checkout |
57 |
| - uses: actions/checkout@v3 |
58 |
| - - name: Load Node version ${{ matrix.node }} |
59 |
| - uses: actions/setup-node@v3 |
| 33 | + - uses: actions/checkout@v4 |
| 34 | + - uses: ljharb/actions/node/install@main |
60 | 35 | with:
|
61 |
| - node-version: ${{ matrix.node }} |
62 |
| - cache: npm |
63 |
| - - name: Npm Install |
64 |
| - run: npm ci |
| 36 | + use-npm-ci: true |
65 | 37 | - name: Run ESLint
|
66 | 38 | run: npm run lint
|
| 39 | + |
67 | 40 | diff-breakUpAriaJSON:
|
68 | 41 | name: Compare JSON to src output
|
69 | 42 | runs-on: ubuntu-latest
|
70 | 43 | steps:
|
71 |
| - - name: Checkout |
72 |
| - uses: actions/checkout@v3 |
73 |
| - - name: Load Node version |
74 |
| - uses: actions/setup-node@v3 |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + - uses: ljharb/actions/node/install@main |
75 | 46 | with:
|
76 |
| - cache: npm |
77 |
| - - name: Npm Install |
78 |
| - run: npm ci |
| 47 | + use-npm-ci: true |
79 | 48 | - name: Run diff check for the breakUpAriaJSON script
|
80 | 49 | run: node scripts/buildModelModules.js && git diff --exit-code -- src
|
0 commit comments