Files
starter-workflows/ci/deno.yml
T

40 lines
1.1 KiB
YAML
Raw Normal View History

2020-07-24 01:31:50 +05:30
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
2020-07-24 01:13:53 +05:30
# 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
2020-07-24 01:30:01 +05:30
name: Deno
2020-07-24 01:13:53 +05:30
on:
push:
branches: [$default-branch]
pull_request:
branches: [$default-branch]
jobs:
2020-07-24 01:30:01 +05:30
test:
2020-08-25 13:24:46 +05:30
runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS
2020-07-24 01:13:53 +05:30
2020-08-22 17:26:46 +05:30
strategy:
matrix:
deno: ["v1.x", "nightly"]
os: [macOS-latest, windows-latest, ubuntu-latest]
2020-07-24 01:13:53 +05:30
steps:
- name: Setup repo
uses: actions/checkout@v2
- name: Setup Deno
2020-08-22 17:26:46 +05:30
uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96
2020-07-24 01:13:53 +05:30
with:
2020-08-25 13:24:46 +05:30
deno-version: ${{ matrix.deno }} # tests across multiple Deno versions
2020-07-24 01:13:53 +05:30
2020-08-25 13:24:46 +05:30
- name: Cache Dependencies
2020-07-24 01:13:53 +05:30
run: deno cache deps.ts
- name: Run Tests
run: deno test -A --unstable