|
@@ -35,6 +35,19 @@ jobs:
|
|
- run: go mod download
|
|
- run: go mod download
|
|
- run: go build -v .
|
|
- run: go build -v .
|
|
|
|
|
|
|
|
+ generate:
|
|
|
|
+ runs-on: ubuntu-latest
|
|
|
|
+ steps:
|
|
|
|
+ - uses: actions/setup-go@v3
|
|
|
|
+ with:
|
|
|
|
+ go-version: ${{ env.GO_VERSION }}
|
|
|
|
+ - uses: actions/checkout@v3
|
|
|
|
+ - run: go generate ./...
|
|
|
|
+ - name: git diff
|
|
|
|
+ run: |
|
|
|
|
+ git diff --compact-summary --exit-code || \
|
|
|
|
+ (echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1)
|
|
|
|
+
|
|
# Run acceptance tests in a matrix with Terraform CLI versions
|
|
# Run acceptance tests in a matrix with Terraform CLI versions
|
|
test:
|
|
test:
|
|
name: Terraform Provider Acceptance Tests
|
|
name: Terraform Provider Acceptance Tests
|