Skip to content

Commit 1f9bece

Browse files
committed
chore: fix ci
1 parent 97b9cd2 commit 1f9bece

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

.github/workflows/aio.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,32 @@ jobs:
2323
uses: asdf-vm/actions/plugin-test@v1
2424
with:
2525
command: terraform-docs --version
26-
version: v0.10.1
26+
version: 0.10.1
2727

28-
lint:
28+
lint_and_tests:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout code
3232
uses: actions/checkout@v2
3333
- name: Run the sh-checker
34-
uses: luizm/action-sh-checker@v0.1.8
34+
uses: luizm/action-sh-checker@v0.1.12
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
#SHELLCHECK_OPTS: -e SC1004 # Optional: exclude some shellcheck warnings.
3838
SHFMT_OPTS: -i 2 # Optional: pass arguments to shfmt.
3939
with:
4040
sh_checker_comment: true
41+
- name: Install asdf
42+
run: |
43+
git clone https://github.com/asdf-vm/asdf.git $HOME/asdf
44+
45+
- name: Install bats
46+
run: |
47+
sudo apt-get install bats
48+
bats --version
49+
50+
- name: Test plugin with bats
51+
run: |
52+
. $HOME/asdf/asdf.sh
53+
asdf plugin-add terraform-docs $GITHUB_WORKSPACE
54+
bats test

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,11 @@ Check out the [asdf](https://github.com/asdf-vm/asdf) readme for instructions on
2323

2424
## Source code
2525

26-
This source code has been generated with : `cookiecutter --overwrite-if-exists --directory plugins/terraform-docs --no-input https://github.com/looztra/cookiecutter-asdf-plugin`
26+
This source code has been generated with :
27+
28+
```bash
29+
cookiecutter --overwrite-if-exists --directory plugins/terraform-docs --no-input https://github.com/looztra/cookiecutter-asdf-plugin
30+
31+
```
32+
33+

test/default.bats

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bats
2+
3+
@test "can list all" {
4+
asdf list all terraform-docs
5+
}
6+
7+
@test "can install 0.10.1" {
8+
asdf install terraform-docs 0.10.1
9+
}

0 commit comments

Comments
 (0)