Skip to content

Merge pull request #200 from uber/update-test-actions #126

Merge pull request #200 from uber/update-test-actions

Merge pull request #200 from uber/update-test-actions #126

Workflow file for this run

name: test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
# Run quick tests for all Node versions
version-tests:
name: Test Node ${{ matrix.node_version }}
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [18, 20, 22, 23]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node_version }}'
- name: Install
run: |
yarn
- name: Tests
run: |
yarn test-fast
# Run the full CI suite for the dev Node version. Tests are expected to pass for all
# Node versions, but the build only needs to work for the development version, which
# should match the Volta config in package.json
build-tests:
name: Build Test Node ${{ matrix.node_version }}
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [22]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node_version }}'
- name: Install
run: |
yarn
- name: Build
run: |
yarn docker-boot
yarn build-emscripten
- name: Tests
run: |
yarn lint
yarn test-fast
yarn check-prettier
yarn check-docs
yarn check-tsd
yarn cover
- uses: coverallsapp/github-action@master
with:
path-to-lcov: ./coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}