Files
starter-workflows/ci/deno.yml
T

48 lines
1.3 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.
# This workflow will install Deno and run tests across stable and canary builds on Windows, Ubuntu and macOS.
# For more information see: https://github.com/denoland/setup-deno
2020-07-24 01:13:53 +05:30
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", "canary"]
2020-08-22 17:26:46 +05:30
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
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@4a4e59637fa62bd6c086a216c7e4c5b457ea9e79
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
# Uncomment this step to verify the use of 'deno fmt' on each commit.
# - name: Verify formatting
# run: deno fmt --check
- name: Run linter
run: deno lint
- name: Cache dependencies
2020-07-24 01:13:53 +05:30
run: deno cache deps.ts
- name: Run tests
2020-07-24 01:13:53 +05:30
run: deno test -A --unstable