-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 971 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: test-${{ matrix.deno }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
deno: [old, stable, canary]
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Setup Deno
run: |
curl -fsSL https://deno.land/x/install/install.sh | sh ${{ matrix.deno == 'old' && '-s v1.36.1' || '' }}
echo "$HOME/.deno/bin" >> $${{ runner.os == 'Windows' && 'env:' || '' }}GITHUB_PATH
- name: Upgrade to Deno canary
if: matrix.deno == 'canary'
run: deno upgrade --canary
- name: Format
if: runner.os == 'Linux'
run: deno fmt --check
- name: Lint
if: runner.os == 'Linux'
run: deno lint --unstable
- name: Run Tests
run: deno test --unstable --check -A