Create cache dir for currently logged in user (#211) #266
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-openj9-8.0.252+9.1.openj9-0.20.0 java -version | |
- name: Check update_data.bash | |
env: | |
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
./update_data.bash | |
grep -q adoptopenjdk-openj9-11 data/jdk-linux-x86_64.tsv | |
echo "Found adoptopenjdk-openj9-11" | |
grep -q adoptopenjdk-openj9-large_heap-11 data/jdk-macosx-x86_64.tsv | |
echo "Found adoptopenjdk-openj9-large_heap-11" | |
grep -q zulu-musl-11 data/jdk-linux-x86_64.tsv | |
echo "Found zulu-musl-11 " | |
grep -q liberica-javafx-16 data/jdk-linux-arm32-vfp-hflt.tsv | |
echo "Found liberica-javafx-16" | |
grep -q liberica-lite-11 data/jdk-macosx-x86_64.tsv | |
echo "Found liberica-lite-11" | |
grep "graalvm-21" data/jdk-linux-aarch64.tsv | grep -q -v "graalvm-graalvm-21" | |
echo "Found graalvm-21" | |
- name: macOS Check java_home integration | |
env: | |
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
export ASDF_CONFIG_FILE=${HOME}"/.asdfrc" | |
echo "java_macos_integration_enable = yes" > "${ASDF_CONFIG_FILE}" | |
. asdf/asdf.sh | |
asdf plugin-test java "$GITHUB_WORKSPACE" --asdf-plugin-gitref "$GITHUB_SHA" --asdf-tool-version zulu-8.52.0.23 /usr/libexec/java_home -V 2>&1 | grep "Zulu 8.52.0.23" | |
if: matrix.os == 'macOS-latest' |