Skip to content

Commit

Permalink
rename action to bats-action
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenpip3 committed Dec 26, 2023
1 parent 5bab393 commit 6f68bc1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/test-local-action-inside-home.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bats and Bats libs
id: setup-bats-libs
id: bats-action
uses: ./
with:
support-clean: "false"
Expand All @@ -31,23 +31,23 @@ jobs:
file-clean: "false"
file-path: "${{ github.workspace }}/tests/bats-file"
- name: Execute test to check Bats-support
if: steps.setup-bats-libs.outputs.support-installed == 'true'
if: steps.bats-action.outputs.support-installed == 'true'
run: |
cd /tmp/bats-support/
bats test
- name: Execute test to check Bats-assert
if: steps.setup-bats-libs.outputs.assert-installed == 'true'
if: steps.bats-action.outputs.assert-installed == 'true'
run: |
ls -l $BATS_LIB_PATH/
cd /tmp/bats-assert/
bats test
- name: Execute test to check Bats-detik
if: steps.setup-bats-libs.outputs.detik-installed == 'true'
if: steps.bats-action.outputs.detik-installed == 'true'
run: |
cd /tmp/bats-detik/
bats tests
- name: Execute test to check Bats-file
if: steps.setup-bats-libs.outputs.file-installed == 'true'
if: steps.bats-action.outputs.file-installed == 'true'
# Currently the bats-file tests are broken
# in gh runner env
continue-on-error: true
Expand All @@ -68,7 +68,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bats and Bats libs
id: setup-bats-libs
id: bats-action
uses: ./
with:
support-clean: "false"
Expand All @@ -80,23 +80,23 @@ jobs:
file-clean: "false"
file-path: "${{ github.workspace }}/tests/bats-file"
- name: Execute test to check Bats-support
if: steps.setup-bats-libs.outputs.support-installed == 'true'
if: steps.bats-action.outputs.support-installed == 'true'
run: |
cd /tmp/bats-support/
bats test
- name: Execute test to check Bats-assert
if: steps.setup-bats-libs.outputs.assert-installed == 'true'
if: steps.bats-action.outputs.assert-installed == 'true'
run: |
ls -l $BATS_LIB_PATH/
cd /tmp/bats-assert/
bats test
- name: Execute test to check Bats-detik
if: steps.setup-bats-libs.outputs.detik-installed == 'true'
if: steps.bats-action.outputs.detik-installed == 'true'
run: |
cd /tmp/bats-detik/
bats tests
- name: Execute test to check Bats-file
if: steps.setup-bats-libs.outputs.file-installed == 'true'
if: steps.bats-action.outputs.file-installed == 'true'
# Currently the bats-file tests are broken
# in gh runner env
continue-on-error: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-public-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bats and Bats-libs
uses: brokenpip3/setup-bats-libs@main
uses: bats-core/bats-action@main
with:
support-clean: "false"
assert-clean: "false"
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bats and Bats-libs
uses: brokenpip3/setup-bats-libs@main
uses: bats-core/bats-action@main
with:
support-clean: "false"
assert-clean: "false"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Bats and bats libs
uses: bats-core/setup-bats-libs@1.5.3
uses: bats-core/bats-action@1.5.4
```
## Libraries Path
Expand All @@ -35,7 +35,7 @@ For example, if you want to install `bats-support` in the `./test/bats-support`
``` yaml
# ...
- name: Setup Bats and Bats libs
uses: bats-core/setup-bats-libs@1.5.3
uses: bats-core/bats-action@1.5.4
with:
support-path: ${{ github.workspace }}/test/bats-support
```
Expand Down

0 comments on commit 6f68bc1

Please sign in to comment.