Skip to content

Commit

Permalink
chore: add bats tests and update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
looztra committed Jul 9, 2023
1 parent 3ec72e5 commit a869605
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/aio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
- name: Run the sh-checker
uses: luizm/action-sh-checker@v0.1.12
uses: luizm/action-sh-checker@v0.7.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#SHELLCHECK_OPTS: -e SC1004 # Optional: exclude some shellcheck warnings.
Expand Down
8 changes: 8 additions & 0 deletions test/default.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@
@test "can install v0.10.1" {
asdf install terraform-docs v0.10.1
}

@test "can install 0.16.0 for when uname -m is aarch64" {
ASDF_OVERWRITE_ARCH=aarch64 asdf install terraform-docs 0.16.0
}

@test "can install 0.16.0 for when uname -m is armv7l" {
ASDF_OVERWRITE_ARCH=armv7l asdf install terraform-docs 0.16.0
}

0 comments on commit a869605

Please sign in to comment.