fix examples #350
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: | |
deno-version: ["1.34", 1.x, canary] | |
include: | |
- deno-version: canary | |
coverage: true | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
steps: | |
- name: checkout project | |
uses: actions/checkout@v3 | |
- name: install deno ${{ matrix.deno-version }} | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{ matrix.deno-version }} | |
- name: run lint | |
run: deno lint | |
- name: install binaries | |
run: deno run -A test/install_binaries.ts | |
- name: run test with coverage | |
run: deno task test --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 |