move to jsr (#41) #147
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, pull_request, workflow_dispatch] | |
jobs: | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout Module | |
uses: actions/checkout@v2 | |
- name: Use Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
- name: 😉 Format | |
run: deno fmt --check | |
- name: 😋 Lint | |
run: deno lint | |
Type-Check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout Module | |
uses: actions/checkout@v2 | |
- name: Use Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
- name: 🧐 Type Check | |
run: deno task check | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git Checkout Module | |
uses: actions/checkout@v2 | |
- name: Use Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
- name: 😎 Test | |
run: deno task test --coverage=coverage | |
- name: Create coverage report | |
run: deno coverage ./coverage --lcov > coverage.lcov | |
- name: Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
files: ./coverage.lcov | |
fail_ci_if_error: true |