Skip to content

Commit d0503fb

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

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/code_checks.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,26 @@ 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+
asdf plugin add bats
3642
3743
- name: Test plugin with bats
3844
run: |
39-
asdf plugin-add k9s "${GITHUB_WORKSPACE}"
45+
asdf plugin add k9s "${GITHUB_WORKSPACE}"
4046
bats --filter-tags type:features --filter-tags type:os_specific test
4147
4248
lint_and_tests:

0 commit comments

Comments
 (0)