feat: initial commit #1
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: | |
lint_and_fmt: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
deno: [v1.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{ matrix.deno }} | |
- name: Lint files | |
run: deno lint | |
- name: Check formatting | |
run: deno fmt --check | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
deno: [v1.x, canary] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{ matrix.deno }} | |
- name: Run unit tests on Deno | |
run: deno test |