update usage #4
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: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
linting: | |
name: Testing | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: denoland/setup-deno@v1.1.2 | |
with: | |
deno-version: v1.x # Run with latest stable Deno. | |
- name: Run Tests | |
run: deno test --allow-all --coverage=cov/ | |
- name: Generate coverage report | |
run: deno coverage --lcov cov > cov.lcov | |
- name: Upload coverage to Coveralls.io | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} # Generated by GitHub. | |
path-to-lcov: cov.lcov |