62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
# 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
|