Add GitHub Actions workflow for running tests on PRs

This commit is contained in:
Jochen Schalanda 2019-11-20 21:49:08 +01:00
parent 00bb71562b
commit 5e0902b373
No known key found for this signature in database
GPG Key ID: 2FC1B61A8D1F4BB0

23
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: asdf-java Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macOS-latest']
steps:
- uses: actions/checkout@v1
- uses: mstksg/get-package@v1
with:
brew: jq
- name: Set-up asdf
run: git clone --depth 1 --quiet https://github.com/asdf-vm/asdf.git && . asdf/asdf.sh
- name: Run tests
run: asdf plugin-test java $GITHUB_WORKSPACE