Fix #38
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: 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.35.0' || '' }} | |
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 |