mirror of
https://github.com/halcyon/asdf-java.git
synced 2024-10-07 00:22:10 +08:00
39 lines
949 B
YAML
39 lines
949 B
YAML
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']
|
|
env:
|
|
TERM: dumb
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: mstksg/get-package@v1
|
|
with:
|
|
brew: bash coreutils jq shellcheck
|
|
apt-get: jq shellcheck
|
|
- name: Run ShellCheck
|
|
run: |
|
|
shellcheck -V
|
|
shellcheck ./bin/functions
|
|
shellcheck ./update_data.bash
|
|
- name: Install asdf
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: asdf-vm/asdf
|
|
path: asdf
|
|
- name: Run tests
|
|
env:
|
|
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
. asdf/asdf.sh
|
|
asdf plugin-test java "$GITHUB_WORKSPACE" --asdf-plugin-gitref "$GITHUB_SHA" --asdf-tool-version adoptopenjdk-8.0.252+9.1.openj9-0.20.0 java -version
|