Skip to content

ci(wf): install asdf from binary #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,35 @@
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: asdf_plugin_test default
uses: asdf-vm/actions/plugin-test@v3
with:
command: k9s --help

- name: Checkout code
uses: actions/checkout@v4

- name: Install Tools with asdf
uses: asdf-vm/actions/install@v3
env:
ASDF_VERSION: v0.16.5
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |

Check notice on line 33 in .github/workflows/code_checks.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/code_checks.yml#L33

shellcheck reported issue in this script: SC2086:info:1:77: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
i:.github/workflows/code_checks.yml:33:9: shellcheck reported issue in this script: SC2086:info:1:77: Double quote to prevent globbing and word splitting [shellcheck]

Check notice on line 33 in .github/workflows/code_checks.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/code_checks.yml#L33

shellcheck reported issue in this script: SC2086:info:1:98: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
i:.github/workflows/code_checks.yml:33:9: shellcheck reported issue in this script: SC2086:info:1:98: Double quote to prevent globbing and word splitting [shellcheck]
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
tar xf asdf.tar.gz
mkdir -p "${GITHUB_WORKSPACE}/.local/bin"
mv asdf "${GITHUB_WORKSPACE}/.local/bin"
chmod +x "${GITHUB_WORKSPACE}/.local/bin/asdf"
rm asdf.tar.gz
echo "${GITHUB_WORKSPACE}/.local/bin" >> "$GITHUB_PATH"

- name: Install bats
run: |
asdf plugin add bats
asdf install bats

- name: Test plugin with bats
run: |
asdf plugin-add k9s "${GITHUB_WORKSPACE}"
echo "::group::Install local plugin"
asdf plugin add k9s "${GITHUB_WORKSPACE}"
echo "::endgroup::"
echo "::group::Test plugin with bats"
bats --filter-tags type:features --filter-tags type:os_specific test
echo "::endgroup::"

lint_and_tests:
runs-on: ubuntu-latest
Expand Down
Loading