Skip to content

Commit a5d39a4

Browse files
committed
ci(wf): install asdf from binary
1 parent 41632d9 commit a5d39a4

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/code_checks.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,35 @@ jobs:
2323
- ubuntu-latest
2424
runs-on: ${{ matrix.os }}
2525
steps:
26-
- name: asdf_plugin_test default
27-
uses: asdf-vm/actions/plugin-test@v3
28-
with:
29-
command: k9s --help
30-
3126
- name: Checkout code
3227
uses: actions/checkout@v4
3328

3429
- name: Install Tools with asdf
35-
uses: asdf-vm/actions/install@v3
30+
env:
31+
ASDF_VERSION: v0.16.5
32+
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: |
34+
curl -Ls --proto "=https" https://github.com/asdf-vm/asdf/releases/download/${ASDF_VERSION}/asdf-${ASDF_VERSION}-linux-amd64.tar.gz --output asdf.tar.gz
35+
tar xf asdf.tar.gz
36+
mkdir -p "${GITHUB_WORKSPACE}/.local/bin"
37+
mv asdf "${GITHUB_WORKSPACE}/.local/bin"
38+
chmod +x "${GITHUB_WORKSPACE}/.local/bin/asdf"
39+
rm asdf.tar.gz
40+
echo "${GITHUB_WORKSPACE}/.local/bin" >> "$GITHUB_PATH"
41+
42+
- name: Install bats
43+
run: |
44+
asdf plugin add bats
45+
asdf install bats
3646
3747
- name: Test plugin with bats
3848
run: |
39-
asdf plugin-add k9s "${GITHUB_WORKSPACE}"
49+
echo "::group::Install local plugin"
50+
asdf plugin add k9s "${GITHUB_WORKSPACE}"
51+
echo "::endgroup::"
52+
echo "::group::Test plugin with bats"
4053
bats --filter-tags type:features --filter-tags type:os_specific test
54+
echo "::endgroup::"
4155
4256
lint_and_tests:
4357
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)