node/deno compat #370
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: test | |
on: | |
push: | |
branches: dev | |
pull_request: | |
branches: dev | |
types: [opened, synchronize, reopened] | |
jobs: | |
test: | |
name: run tests | |
strategy: | |
matrix: | |
node-version: [20.x, canary] | |
include: | |
- node-version: canary | |
coverage: true | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
steps: | |
- name: checkout project | |
uses: actions/checkout@v3 | |
- name: install node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: run test with coverage | |
run: npm run test --workspace=frugal -- --coverage | |
- name: integration test code coverage | |
if: matrix.coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./cov_profile.lcov | |
fail_ci_if_error: true |