Update dependencies #295
Workflow file for this run
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: Terraform Provider Testing | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go: [ "1.24", "1.25" ] | |
| env: | |
| GOPATH: /home/runner/work/terraform-provider-jetstream | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{matrix.go}} | |
| - name: Lint | |
| if: matrix.go == '1.24' | |
| shell: bash | |
| run: | | |
| go install honnef.co/go/tools/cmd/staticcheck@latest | |
| go install github.com/client9/misspell/cmd/misspell@latest | |
| PATH=$PATH:$GOPATH/bin | |
| GO_LIST=$(go list ./...) | |
| $(exit $(go fmt $GO_LIST | wc -l)) | |
| go vet -composites=false $GO_LIST | |
| find . -type f -name "*.go" | xargs misspell -error -locale US | |
| staticcheck -f stylish $GO_LIST | |
| - name: Run tests | |
| shell: bash | |
| run: | | |
| set -e | |
| TF_ACC=1 go test -v --failfast -p=1 ./... |