switch to official denoland/setup-deno action (#909)

* switch to official denoland/setup-deno action

Also adds formatting and linting to the workflow (like dart workflow), and use uniform capitalization.

* update commit hash

Co-authored-by: Josh Gross <[email protected]>
This commit is contained in:
Luca Casonato
2021-05-24 16:02:03 -04:00
committed by GitHub
co-authored by Josh Gross
parent 68d67073c3
commit 7c29ac2481
+14 -6
View File
@@ -3,8 +3,8 @@
# separate terms of service, privacy policy, and support
# documentation.
# 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
# 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
name: Deno
@@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
deno: ["v1.x", "nightly"]
deno: ["v1.x", "canary"]
os: [macOS-latest, windows-latest, ubuntu-latest]
steps:
@@ -28,12 +28,20 @@ jobs:
uses: actions/checkout@v2
- name: Setup Deno
uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@4a4e59637fa62bd6c086a216c7e4c5b457ea9e79
with:
deno-version: ${{ matrix.deno }} # tests across multiple Deno versions
- name: Cache Dependencies
# 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
run: deno cache deps.ts
- name: Run Tests
- name: Run tests
run: deno test -A --unstable