mirror of
https://github.com/danbulant/deno_install
synced 2026-07-07 12:10:38 +00:00
use github actions, remove travis and appveyor (#85)
This commit is contained in:
parent
a4db8a45c1
commit
f3dc7160e4
5 changed files with 33 additions and 51 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
build: off
|
|
||||||
test_script:
|
|
||||||
- ps: .\install_test.ps1
|
|
||||||
31
.github/workflows/ci.yml
vendored
Normal file
31
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: ci
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: shfmt
|
||||||
|
if: matrix.os == 'macOS-latest'
|
||||||
|
run: |
|
||||||
|
brew install shfmt
|
||||||
|
shfmt -d .
|
||||||
|
|
||||||
|
- name: tests shell
|
||||||
|
if: matrix.os != 'windows-latest'
|
||||||
|
shell: bash
|
||||||
|
run: ./install_test.sh
|
||||||
|
|
||||||
|
- name: tests powershell
|
||||||
|
shell: pwsh
|
||||||
|
run: ./install_test.ps1
|
||||||
|
|
||||||
43
.travis.yml
43
.travis.yml
|
|
@ -1,43 +0,0 @@
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- language: sh
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- shellcheck
|
|
||||||
env:
|
|
||||||
- SHFMT_VERSION=2.6.2
|
|
||||||
- PWSH_VERSION=6.2.3
|
|
||||||
- PATH=$HOME/bin/pwsh:$HOME/bin:$PATH
|
|
||||||
before_script:
|
|
||||||
- curl -sSL -o $HOME/bin/shfmt https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_amd64
|
|
||||||
- chmod +x $HOME/bin/shfmt
|
|
||||||
- mkdir -p $HOME/bin/pwsh
|
|
||||||
- curl -sSL -o $HOME/bin/pwsh/pwsh.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v$PWSH_VERSION/powershell-$PWSH_VERSION-linux-x64.tar.gz
|
|
||||||
- tar -xf $HOME/bin/pwsh/pwsh.tar.gz -C $HOME/bin/pwsh
|
|
||||||
- chmod +x $HOME/bin/pwsh/pwsh
|
|
||||||
script:
|
|
||||||
- ./install_test.sh
|
|
||||||
- ./install_test.ps1
|
|
||||||
- language: sh
|
|
||||||
os:
|
|
||||||
- osx
|
|
||||||
addons:
|
|
||||||
homebrew:
|
|
||||||
update: true
|
|
||||||
packages:
|
|
||||||
- shellcheck
|
|
||||||
- shfmt
|
|
||||||
env:
|
|
||||||
- PWSH_VERSION=6.2.3
|
|
||||||
- PATH=$HOME/bin/pwsh:$PATH
|
|
||||||
before_script:
|
|
||||||
- mkdir -p $HOME/bin/pwsh
|
|
||||||
- curl -sSL -o $HOME/bin/pwsh/pwsh.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v$PWSH_VERSION/powershell-$PWSH_VERSION-osx-x64.tar.gz
|
|
||||||
- tar -xf $HOME/bin/pwsh/pwsh.tar.gz -C $HOME/bin/pwsh
|
|
||||||
- chmod +x $HOME/bin/pwsh/pwsh
|
|
||||||
script:
|
|
||||||
- ./install_test.sh
|
|
||||||
- ./install_test.ps1
|
|
||||||
|
|
@ -2,9 +2,7 @@
|
||||||
|
|
||||||
**One-line commands to install Deno on your system.**
|
**One-line commands to install Deno on your system.**
|
||||||
|
|
||||||
| **Linux & Mac** | **Windows** |
|
[](https://github.com/denoland/deno_install/actions)
|
||||||
|:---------------:|:-----------:|
|
|
||||||
| [](https://travis-ci.com/denoland/deno_install) | [](https://ci.appveyor.com/project/deno/deno-install) |
|
|
||||||
|
|
||||||
## Install Latest Version
|
## Install Latest Version
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Lint.
|
# Lint.
|
||||||
shellcheck -s sh ./*.sh
|
# TODO(ry) shellcheck -s sh ./*.sh
|
||||||
shfmt -d .
|
|
||||||
|
|
||||||
# Test we can install a specific version.
|
# Test we can install a specific version.
|
||||||
rm -rf ~/.deno
|
rm -rf ~/.deno
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue