From 691320dc5e58be51ed494a380bfee67d1ab9226d Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Mon, 30 Dec 2019 17:23:27 +0100 Subject: [PATCH 1/2] Fix the GitHub tests workflow --- .github/workflows/tests.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce7c169..71edd57 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,13 +15,16 @@ jobs: env: TERM: dumb steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - uses: mstksg/get-package@v1 with: brew: coreutils - name: Install asdf - run: git clone --quiet https://github.com/asdf-vm/asdf.git + uses: actions/checkout@v2 + with: + repository: asdf-vm/asdf + path: asdf - name: Run tests run: | . asdf/asdf.sh - asdf plugin-test java $GITHUB_WORKSPACE + asdf plugin-test java "$GITHUB_WORKSPACE" --asdf-plugin-gitref "$GITHUB_SHA" From 21c6959a321c53249ce7c4ca37ba04dfbb145021 Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Mon, 30 Dec 2019 17:40:58 +0100 Subject: [PATCH 2/2] Fix tests in Travis CI --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 254ead4..4434c51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: c -script: asdf plugin-test java $TRAVIS_BUILD_DIR +script: asdf plugin-test java "$TRAVIS_BUILD_DIR" --asdf-plugin-gitref "$TRAVIS_COMMIT" before_script: - git clone https://github.com/asdf-vm/asdf.git - . asdf/asdf.sh