Run diff-processor unit tests with TPGB as well #141
Workflow file for this run
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: unit-tests-diff-processor | |
permissions: read-all | |
on: | |
pull_request: | |
paths: | |
- 'tools/diff-processor/**' | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2 | |
- name: Set up Go | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version: '^1.21.0' | |
- name: Build with TPG | |
run: | | |
cd tools/diff-processor | |
make clone OWNER_REPO=hashicorp/terraform-provider-google DEPTH=1 | |
make build OLD_REF=main NEW_REF=main | |
- name: Test with TPG | |
run: | | |
cd tools/diff-processor | |
go test -v ./... | |
- name: Build with TPGB | |
cd tools/diff-processor | |
make clone OWNER_REPO=hashicorp/terraform-provider-google-beta DEPTH=1 | |
make build OLD_REF=main NEW_REF=main | |
- name: Test with TPGB | |
run: | | |
cd tools/diff-processor | |
go test -v ./... |