mirror of
https://github.com/halcyon/asdf-java.git
synced 2024-10-06 07:42:09 +08:00
Add GitHub Actions workflow for running tests on PRs
This commit is contained in:
parent
00bb71562b
commit
5e0902b373
23
.github/workflows/tests.yml
vendored
Normal file
23
.github/workflows/tests.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user