ci: add matrix testing (#471)

* ci: add matrix testing

* idk
This commit is contained in:
Ayyan
2021-01-26 12:03:19 +04:00
committed by GitHub
parent 0fd258d834
commit b164d0bf4f
3 changed files with 12 additions and 3 deletions

View File

@@ -3,11 +3,18 @@ on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
deno: ["v1.x", "nightly"]
steps:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
with:
deno-version: {{ matrix.deno }}
- name: Cache dependencies
run: deno cache mod.ts
run: |
deno version
deno cache mod.ts
- name: Run test script
if: github.ref == 'refs/heads/master'
run: deno test --allow-net --allow-env