mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
build: install Deno using bash installer (#681)
This commit is contained in:
parent
d18c80b16f
commit
5ae977b81f
44
.github/workflows/ci.yml
vendored
44
.github/workflows/ci.yml
vendored
@ -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
2
.gitignore
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user