Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
add local tests to all the actions
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenpip3 committed Jul 28, 2023
1 parent 29ffd9a commit 93e2bdc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test-local-action-with-conditionals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
support-clean: "false"
assert-clean: "false"
detik-install: "false"
file-install: "false"
file-install: "true"
- name: Execute test to check Bats-support
run: |
cd /tmp/bats-support/
Expand All @@ -28,3 +28,6 @@ jobs:
run: |
cd /tmp/bats-assert/
bats test
- name: Execute example tests
run:
bats -T -p tests
3 changes: 3 additions & 0 deletions .github/workflows/test-public-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
run: |
cd /tmp/bats-file/
bats test
- name: Execute example tests
run:
bats -T -p tests
public_test_trigger_cache:
# Run the test again to eventually trigger the cache in the future
needs: [public_test]
Expand Down
3 changes: 0 additions & 3 deletions tests/1-example-tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ setup() {

#bats test_tags=github:true
@test "4: Testing file size" {
run ls -l testing/example |cut -d ' ' -f5
assert_success
assert_output --partial "0"
assert_size_zero testing/example
}

Expand Down

0 comments on commit 93e2bdc

Please sign in to comment.