mirror of
https://github.com/asdf-vm/asdf-nodejs.git
synced 2024-10-05 15:25:28 +08:00
Merge pull request #196 from smorimoto/github-actions
Switch from TravisCI to GitHub Actions
This commit is contained in:
commit
223cb30f9a
37
.github/workflows/workflow.yml
vendored
Normal file
37
.github/workflows/workflow.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: Main workflow
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
schedule:
|
||||
- cron: 0 0 * * 5
|
||||
|
||||
jobs:
|
||||
plugin_test:
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- macos-latest
|
||||
- ubuntu-latest
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install system packages on Ubuntu
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
run: sudo apt-get install curl dirmngr gawk gpg
|
||||
|
||||
- name: Install system packages on macOS
|
||||
if: ${{ runner.os == 'macOS' }}
|
||||
run: brew install coreutils gawk gpg
|
||||
|
||||
- name: Import the Node.js release team's OpenPGP keys
|
||||
run: bash ./bin/import-release-team-keyring
|
||||
|
||||
- name: Test plugin
|
||||
uses: asdf-vm/actions/plugin-test@v1
|
||||
with:
|
||||
command: node --version
|
10
.travis.yml
10
.travis.yml
@ -1,10 +0,0 @@
|
||||
language: c
|
||||
script: asdf plugin test nodejs . --asdf-plugin-gitref HEAD node --version
|
||||
before_script:
|
||||
- git clone https://github.com/asdf-vm/asdf.git
|
||||
- . asdf/asdf.sh
|
||||
- ./bin/import-release-team-keyring
|
||||
osx_image: xcode8.2
|
||||
os:
|
||||
- linux
|
||||
- osx
|
Loading…
Reference in New Issue
Block a user