Create deno.yml
This commit is contained in:
+61
@@ -0,0 +1,61 @@
|
|||||||
|
# This workflow will install Deno and run tests across stable and nightly builds on Windows, Ubuntu and macOS.
|
||||||
|
# For more information see: https://github.com/denolib/setup-deno
|
||||||
|
|
||||||
|
name: Deno CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [$default-branch]
|
||||||
|
pull_request:
|
||||||
|
branches: [$default-branch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stable:
|
||||||
|
name: Test on Deno Stable
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [macOS-latest, windows-latest, ubuntu-latest]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Setup repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Deno
|
||||||
|
uses: denolib/setup-deno@v2
|
||||||
|
with:
|
||||||
|
deno-version: v1.x
|
||||||
|
|
||||||
|
- name: Cache Deps
|
||||||
|
run: deno cache deps.ts
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
run: deno test -A --unstable
|
||||||
|
|
||||||
|
nightly:
|
||||||
|
name: Test on Deno Nightly
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [macOS-latest, windows-latest, ubuntu-latest]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Setup repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Deno
|
||||||
|
uses: denolib/setup-deno@v2
|
||||||
|
with:
|
||||||
|
deno-version: nightly
|
||||||
|
|
||||||
|
- name: Cache Deps
|
||||||
|
run: deno cache deps.ts
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: deno-nightly test -A --unstable
|
||||||
Reference in New Issue
Block a user