Skip to content

Result of tsccr-helper -log-level=info gha update -latest .github/ #131

Result of tsccr-helper -log-level=info gha update -latest .github/

Result of tsccr-helper -log-level=info gha update -latest .github/ #131

Workflow file for this run

name: tests
on:
push:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- run: go build -v .
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- run: go test ./...
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
with:
terraform_version: 1.10.0
terraform_wrapper: false
- name: Check examples
run: |
printf "Executing equivalence tests on example directory\n\n"
go run main.go update --goldens=examples/example_golden_files --tests=examples/example_test_cases
printf "\n\nFinished executing equivalence tests on example directory\n\n"
if [[ `git status --porcelain` ]]; then
printf "Found modified example test cases with no updated golden files\n"
printf 'Please run `go run main.go update --goldens=examples/example_golden_files --tests=examples/example_test_cases` and commit the changes\n'
git diff
exit 1
fi