Qol updates #43
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: Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
chomp-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: "1.40.0" | |
- name: Check format | |
run: deno fmt --check | |
chomp-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: "1.40.0" | |
- name: Check lint | |
run: deno lint | |
chomp-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: "1.40.0" | |
- name: Run tests generating coverage | |
run: deno task test:coverage | |
- name: Generate lcov report | |
run: deno task coverage > cov.lcov | |
- name: upload coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./cov.lcov | |
token: ${{ secrets.CODECOV_TOKEN }} |