File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 2929concurrency : " TfAccTests"
3030
3131jobs :
32+ should_test :
33+ runs-on : ubuntu-latest
34+ outputs :
35+ run_tests : ${{ steps.filter.outputs.run_tests }}
36+ steps :
37+ - uses : dorny/paths-filter@v2
38+ id : filter
39+ with :
40+ filters : |
41+ run_tests:
42+ - '!CHANGELOG.md'
43+ - '!README.md'
44+ - '!website/**'
3245 # ensure the code builds...
3346 build :
47+ if : needs.should_test.outputs.run_tests == 'true'
48+ needs : should_test
3449 name : Build
3550 runs-on : ubuntu-latest
3651 timeout-minutes : 5
5368 go build -v .
5469 # run acceptance tests in a matrix with Terraform core versions
5570 test :
56- name : Matrix Test
71+ if : needs.should_test.outputs.run_tests == 'true'
5772 needs : build
73+ name : Matrix Test
5874 runs-on : ubuntu-latest
5975 timeout-minutes : 90
6076 strategy :
@@ -110,3 +126,10 @@ jobs:
110126 # disable go test timeout. We rely on GitHub action timeout.
111127 run : |
112128 go test -timeout 0 -v -cover ./sumologic/
129+ # skip acceptance tests
130+ noop :
131+ if : needs.should_test.outputs.run_tests != 'true'
132+ needs : should_test
133+ runs-on : ubuntu-latest
134+ steps :
135+ - run : echo "Skipping tests because only docs or website files changed."
You can’t perform that action at this time.
0 commit comments