Bump coverallsapp/github-action from 1.1.3 to 2.2.3 #475
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
- "!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 | |
flow: | |
name: Flow type checking | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Load Node | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
- name: Npm Install | |
run: npm ci | |
- name: Flow type check | |
run: npm run flow | |
eslint: | |
name: ESLint (Node v${{ matrix.node }}) | |
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 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: npm | |
- name: Npm Install | |
run: npm ci | |
- 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 | |
with: | |
cache: npm | |
- name: Npm Install | |
run: npm ci | |
- name: Run diff check for the breakUpAriaJSON script | |
run: node scripts/buildModelModules.js && git diff --exit-code -- src |