build: install Deno using bash installer (#681)

This commit is contained in:
Luca Casonato 2021-02-01 13:45:20 +01:00 committed by GitHub
parent d18c80b16f
commit 5ae977b81f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 12 deletions

View File

@ -2,9 +2,9 @@ name: ci
on: on:
push: push:
branches: [ main ] branches: [main]
pull_request: pull_request:
branches: [ main ] branches: [main]
jobs: jobs:
test: test:
@ -13,7 +13,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
deno-version: [1.x, nightly] deno: [stable, canary]
os: [macOS-latest, ubuntu-latest, windows-2019] os: [macOS-latest, ubuntu-latest, windows-2019]
steps: steps:
@ -23,10 +23,21 @@ jobs:
submodules: true submodules: true
persist-credentials: false persist-credentials: false
- name: Install Deno - name: Install Deno (Unix)
uses: denolib/setup-deno@master if: |
with: !startsWith(matrix.os, 'windows')
deno-version: ${{ matrix.deno-version }} run: |-
curl -fsSL https://deno.land/x/install/install.sh | sh
echo "$HOME/.deno/bin" >> $GITHUB_PATH
- name: Install Deno (Windows)
if: startsWith(matrix.os, 'windows')
run: |-
curl -fsSL https://deno.land/x/install/install.sh | sh
echo "$HOME/.deno/bin" >> $env:GITHUB_PATH
- name: Upgrade to Deno canary
if: matrix.deno == 'canary'
run: deno upgrade --canary
- name: Test - name: Test
run: deno test --unstable --allow-all run: deno test --unstable --allow-all
@ -40,10 +51,21 @@ jobs:
submodules: false submodules: false
persist-credentials: false persist-credentials: false
- name: Install Deno - name: Install Deno (Unix)
uses: denolib/setup-deno@master if: |
with: !startsWith(matrix.os, 'windows')
deno-version: nightly run: |-
curl -fsSL https://deno.land/x/install/install.sh | sh
echo "$HOME/.deno/bin" >> $GITHUB_PATH
- name: Install Deno (Windows)
if: startsWith(matrix.os, 'windows')
run: |-
curl -fsSL https://deno.land/x/install/install.sh | sh
echo "$HOME/.deno/bin" >> $env:GITHUB_PATH
- name: Upgrade to Deno canary
run: deno upgrade --canary
- name: Format - name: Format
run: deno fmt --check --ignore=node/tests/node_modules,hash/_wasm run: deno fmt --check --ignore=node/tests/node_modules,hash/_wasm

2
.gitignore vendored
View File

@ -4,4 +4,4 @@ deno.d.ts
node_modules node_modules
package.json package.json
package-lock.json package-lock.json
.vscode .vscode/settings.json