ci: synced file(s) with honestbank/.github #178
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: "Terratest GitHub Action" | |
on: | |
pull_request: | |
branches: [test, dev, qa, prod, main] | |
push: | |
branches: [test, dev, qa, prod, main] | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.TERRATEST_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_KEY: ${{ secrets.TERRATEST_AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: ${{ secrets.TERRATEST_AWS_REGION }} | |
AWS_REGION: ${{ secrets.TERRATEST_AWS_REGION }} | |
jobs: | |
terratest: | |
name: terratest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.20 | |
id: go | |
- name: Run 'go test -v -timeout 60m' | |
run: | | |
cd test | |
go mod download | |
go test -v -timeout 30m |