setup-deno/.github/workflows/test.yml

34 lines
642 B
YAML
Raw Normal View History

2021-04-10 08:16:12 +08:00
name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
2021-04-10 08:22:53 +08:00
deno:
[1.x, "1.8.2", canary, ~1.7, e7b7129b7a92b7500ded88f8f5baa25a7f59e56e]
2021-04-10 08:16:12 +08:00
steps:
- uses: actions/checkout@v2
- name: Setup Deno
uses: ./
with:
2021-04-10 08:20:00 +08:00
deno-version: ${{ matrix.deno }}
2021-04-10 08:16:12 +08:00
- name: Test Deno
run: deno run https://deno.land/std/examples/welcome.ts
2021-04-10 08:22:53 +08:00
- name: Format
run: npm run fmt:check
- name: Lint
run: npm run lint