chore(repo): update tooling and tests #86
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: AllInOne | |
on: | |
push: | |
branches: | |
- master | |
- main | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
plugin_test: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: asdf_plugin_test | |
uses: asdf-vm/actions/plugin-test@v1 | |
with: | |
command: k9s version | |
lint_and_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run the sh-checker | |
uses: luizm/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
#SHELLCHECK_OPTS: -e SC1004 # Optional: exclude some shellcheck warnings. | |
SHFMT_OPTS: -i 2 # Optional: pass arguments to shfmt. | |
with: | |
sh_checker_comment: true | |
- name: Install asdf | |
run: | | |
git clone https://github.com/asdf-vm/asdf.git $HOME/asdf | |
- name: Install bats | |
run: | | |
sudo apt-get install bats | |
bats --version | |
- name: Test plugin with bats | |
run: | | |
. $HOME/asdf/asdf.sh | |
asdf plugin-add k9s $GITHUB_WORKSPACE | |
bats test |