Skip to content

Run diff-processor unit tests with TPGB as well #141

Run diff-processor unit tests with TPGB as well

Run diff-processor unit tests with TPGB as well #141

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 ./...