fix chap07 #59
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: Terraform Module integration test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
validate: | |
name: Test Module and publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Go 1.14 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.14 | |
id: go | |
- name: Get Go dependencies | |
run: go get -v -t -d ./... | |
- name: Run Tests | |
working-directory: "CHAP07/testing-terratest/module/tests/" | |
run: | | |
go test -v -timeout 30m | |
- name: Bump version and push tag | |
uses: mathieudutour/github-tag-action@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |