Skip to content

Commit

Permalink
[actions] clean up actions, expand test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jun 21, 2024
1 parent 385f600 commit 4ce1954
Showing 1 changed file with 20 additions and 51 deletions.
71 changes: 20 additions & 51 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,75 +6,44 @@ on:
- "!dependabot/**"
pull_request:
workflow_dispatch:

jobs:
jest:
name: Jest (Node v${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [14, 16, 17]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Load Node version ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Npm Install
run: npm ci
- name: Run Jest
run: npm run test:ci
- name: Run Coveralls
uses: coverallsapp/[email protected]
if: matrix.node == '16'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./reports/lcov.info
tests:
uses: ljharb/actions/.github/workflows/node.yml@main
with:
range: '>= 0.4'
type: majors
command: npm run tests-only

flow:
name: Flow type checking
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Load Node
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: ljharb/actions/node/install@main
with:
cache: npm
- name: Npm Install
run: npm ci
use-npm-ci: true
- name: Flow type check
run: npm run flow

eslint:
name: ESLint (Node v${{ matrix.node }})
name: ESLint
runs-on: ubuntu-latest
strategy:
matrix:
node: [16]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Load Node version ${{ matrix.node }}
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: ljharb/actions/node/install@main
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Npm Install
run: npm ci
use-npm-ci: true
- name: Run ESLint
run: npm run lint

diff-breakUpAriaJSON:
name: Compare JSON to src output
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Load Node version
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: ljharb/actions/node/install@main
with:
cache: npm
- name: Npm Install
run: npm ci
use-npm-ci: true
- name: Run diff check for the breakUpAriaJSON script
run: node scripts/buildModelModules.js && git diff --exit-code -- src

0 comments on commit 4ce1954

Please sign in to comment.