AV-92992 | refactor acceptance tests #792
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: Acceptance Tests | |
concurrency: | |
group: acceptance-tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
TF_VAR_auth_token: ${{ secrets.CAPELLA_AUTH_TOKEN }} | |
TF_VAR_organization_id: ${{ secrets.CAPELLA_ORGANIZATION_ID }} | |
TF_VAR_host: ${{ secrets.CAPELLA_HOST }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 # this action has caching built in | |
with: | |
go-version-file: 'go.mod' | |
id: go | |
- name: Run acceptance tests | |
run: make testacc |