chore: add ci (#12)

This commit is contained in:
Luca Casonato
2021-06-02 00:23:33 +02:00
committed by GitHub
parent ff69a0abdf
commit cfe2584669
+39
View File
@@ -0,0 +1,39 @@
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
deno: ["v1.x", "canary"]
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno }}
- name: Verify formatting
if: startsWith(matrix.os, 'ubuntu') && matrix.deno == 'canary'
run: deno fmt --check
- name: Run linter
if: startsWith(matrix.os, 'ubuntu') && matrix.deno == 'canary'
run: deno lint
- name: Cache dependencies
run: deno cache --no-check src/*/deps.ts
# - name: Run tests
# run: deno test -A --unstable