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:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]
jobs:
test:
@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
deno-version: [1.x, nightly]
deno: [stable, canary]
os: [macOS-latest, ubuntu-latest, windows-2019]
steps:
@ -23,10 +23,21 @@ jobs:
submodules: true
persist-credentials: false
- name: Install Deno
uses: denolib/setup-deno@master
with:
deno-version: ${{ matrix.deno-version }}
- name: Install Deno (Unix)
if: |
!startsWith(matrix.os, 'windows')
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
run: deno test --unstable --allow-all
@ -40,10 +51,21 @@ jobs:
submodules: false
persist-credentials: false
- name: Install Deno
uses: denolib/setup-deno@master
with:
deno-version: nightly
- name: Install Deno (Unix)
if: |
!startsWith(matrix.os, 'windows')
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
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
package.json
package-lock.json
.vscode
.vscode/settings.json