Merge pull request #77 from coder/dependabot/go_modules/github.com/ha… #203
This file contains hidden or 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: GoTests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-go: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: 1.22.8 | |
| - uses: actions/checkout@v4.2.2 | |
| - name: Install gotestsum | |
| shell: bash | |
| run: go install gotest.tools/gotestsum@latest | |
| - name: Verify terraform provider | |
| run: | | |
| TF_CLI_CONFIG_FILE=$HOME/.terraformrc go test ./... -run=Test_VerifyE2E/Validate -v | |
| - name: Run tests | |
| run: TF_CLI_CONFIG_FILE=$HOME/.terraformrc gotestsum ./... |