Merge pull request #196 from smorimoto/github-actions

Switch from TravisCI to GitHub Actions
This commit is contained in:
Augusto Moura 2022-02-09 21:15:39 -03:00 committed by GitHub
commit 223cb30f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 10 deletions

37
.github/workflows/workflow.yml vendored Normal file
View 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

View File

@ -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