diff --git a/.github/workflows/test-local-action-with-conditionals.yaml b/.github/workflows/test-local-action-with-conditionals.yaml index e33dcc8..bc1f898 100644 --- a/.github/workflows/test-local-action-with-conditionals.yaml +++ b/.github/workflows/test-local-action-with-conditionals.yaml @@ -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/ @@ -28,3 +28,6 @@ jobs: run: | cd /tmp/bats-assert/ bats test + - name: Execute example tests + run: + bats -T -p tests diff --git a/.github/workflows/test-public-action.yaml b/.github/workflows/test-public-action.yaml index dd221e2..f59bdd8 100644 --- a/.github/workflows/test-public-action.yaml +++ b/.github/workflows/test-public-action.yaml @@ -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] diff --git a/tests/1-example-tests.bats b/tests/1-example-tests.bats index 4b3bafa..e9aab12 100644 --- a/tests/1-example-tests.bats +++ b/tests/1-example-tests.bats @@ -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 }