Skip to content

tools/template-check: add comprehensive unit tests for valid/invalid functions #956

tools/template-check: add comprehensive unit tests for valid/invalid functions

tools/template-check: add comprehensive unit tests for valid/invalid functions #956

Workflow file for this run

name: unit-test-tools
permissions: read-all
on:
pull_request:
paths:
- 'docs/**'
- 'tools/**'
- '.github/workflows/unit-test-tools.yml'
jobs:
diff-processor:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: '^1.26'
- name: Build diff-processor 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 diff-processor with TPG
run: |
cd tools/diff-processor
go test ./...
env:
SERVICES_DIR: tools/diff-processor/new/google/services
- name: Build diff-processor with TPGB
run: |
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 diff-processor with TPGB
run: |
cd tools/diff-processor
go test ./...
env:
SERVICES_DIR: tools/diff-processor/new/google/services
go-changelog:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: '^1.26'
cache-dependency-path: |
tools/go-changelog/go.mod
- name: Build go-changelog
run: |
cd tools/go-changelog/cmd/changelog-pr-body-check
go build
- name: Test go-changelog
run: |
cd tools/go-changelog
go test ./...
issue-labeler:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: '^1.26'
cache-dependency-path: |
tools/issue-labeler/go.mod
- name: Build issue-labeler
run: |
cd tools/issue-labeler
go build
- name: Test issue-labeler
run: |
cd tools/issue-labeler
go test ./...
template-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: '^1.26'
cache-dependency-path: |
tools/template-check/go.mod
- name: Build template-check
run: |
cd tools/template-check
go build
- name: Test template-check
run: |
cd tools/template-check
go test ./...
test-reader:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: '^1.26'
cache-dependency-path: |
tools/test-reader/go.mod
- name: Build test-reader
run: |
cd tools/test-reader
go build
- name: Test test-reader
run: |
cd tools/test-reader
go test ./...