File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,35 @@ jobs:
23
23
- ubuntu-latest
24
24
runs-on : ${{ matrix.os }}
25
25
steps :
26
- - name : asdf_plugin_test default
27
- uses : asdf-vm/actions/plugin-test@v3
28
- with :
29
- command : k9s --help
30
-
31
26
- name : Checkout code
32
27
uses : actions/checkout@v4
33
28
34
29
- 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
36
46
37
47
- name : Test plugin with bats
38
48
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"
40
53
bats --filter-tags type:features --filter-tags type:os_specific test
54
+ echo "::endgroup::"
41
55
42
56
lint_and_tests :
43
57
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments