mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-20 00:13:30 -05:00
Some checks failed
build / Determine intended Terraform version (push) Has been cancelled
build / Determine Go toolchain version (push) Has been cancelled
Quick Checks / Unit Tests (push) Has been cancelled
Quick Checks / Race Tests (push) Has been cancelled
Quick Checks / End-to-end Tests (push) Has been cancelled
Quick Checks / Code Consistency Checks (push) Has been cancelled
build / Generate release metadata (push) Has been cancelled
build / Build for freebsd_386 (push) Has been cancelled
build / Build for linux_386 (push) Has been cancelled
build / Build for openbsd_386 (push) Has been cancelled
build / Build for windows_386 (push) Has been cancelled
build / Build for darwin_amd64 (push) Has been cancelled
build / Build for freebsd_amd64 (push) Has been cancelled
build / Build for linux_amd64 (push) Has been cancelled
build / Build for openbsd_amd64 (push) Has been cancelled
build / Build for solaris_amd64 (push) Has been cancelled
build / Build for windows_amd64 (push) Has been cancelled
build / Build for freebsd_arm (push) Has been cancelled
build / Build for linux_arm (push) Has been cancelled
build / Build for darwin_arm64 (push) Has been cancelled
build / Build for linux_arm64 (push) Has been cancelled
build / Build for windows_arm64 (push) Has been cancelled
build / Build Docker image for linux_386 (push) Has been cancelled
build / Build Docker image for linux_amd64 (push) Has been cancelled
build / Build Docker image for linux_arm (push) Has been cancelled
build / Build Docker image for linux_arm64 (push) Has been cancelled
build / Build e2etest for linux_386 (push) Has been cancelled
build / Build e2etest for windows_386 (push) Has been cancelled
build / Build e2etest for darwin_amd64 (push) Has been cancelled
build / Build e2etest for linux_amd64 (push) Has been cancelled
build / Build e2etest for windows_amd64 (push) Has been cancelled
build / Build e2etest for linux_arm (push) Has been cancelled
build / Build e2etest for darwin_arm64 (push) Has been cancelled
build / Build e2etest for linux_arm64 (push) Has been cancelled
build / Run e2e test for linux_386 (push) Has been cancelled
build / Run e2e test for windows_386 (push) Has been cancelled
build / Run e2e test for darwin_amd64 (push) Has been cancelled
build / Run e2e test for linux_amd64 (push) Has been cancelled
build / Run e2e test for windows_amd64 (push) Has been cancelled
build / Run e2e test for linux_arm (push) Has been cancelled
build / Run e2e test for linux_arm64 (push) Has been cancelled
build / Run terraform-exec test for linux amd64 (push) Has been cancelled
74 lines
2.4 KiB
YAML
74 lines
2.4 KiB
YAML
name: equivalence-test-diff
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- ready_for_review
|
|
- reopened
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
equivalence-test-diff:
|
|
name: "Equivalence Test Diff"
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Fetch source code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- name: Determine Go version
|
|
id: go
|
|
uses: ./.github/actions/go-version
|
|
|
|
- name: Install Go toolchain
|
|
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
|
|
with:
|
|
go-version: ${{ steps.go.outputs.version }}
|
|
cache-dependency-path: go.sum
|
|
|
|
- name: Download testing framework
|
|
shell: bash
|
|
run: |
|
|
./.github/scripts/equivalence-test.sh download_equivalence_test_binary \
|
|
0.5.0 \
|
|
./bin/equivalence-tests \
|
|
linux \
|
|
amd64
|
|
|
|
- name: Build terraform
|
|
shell: bash
|
|
run: ./.github/scripts/equivalence-test.sh build_terraform_binary ./bin/terraform
|
|
|
|
- name: Run equivalence tests
|
|
id: equivalence-tests
|
|
shell: bash {0} # we want to capture the exit code
|
|
run: |
|
|
./bin/equivalence-tests diff \
|
|
--tests=testing/equivalence-tests/tests \
|
|
--goldens=testing/equivalence-tests/outputs \
|
|
--binary=$(pwd)/bin/terraform
|
|
echo "exit-code=$?" >> "${GITHUB_OUTPUT}"
|
|
|
|
- name: Equivalence tests failed
|
|
if: steps.equivalence-tests.outputs.exit-code == 1 # 1 is the exit code for failure
|
|
shell: bash
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
gh pr comment ${{ github.event.pull_request.number }} \
|
|
--body "The equivalence tests failed. Please investigate [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})."
|
|
exit 1 # fail the job
|
|
|
|
- name: Equivalence tests changed
|
|
if: steps.equivalence-tests.outputs.exit-code == 2 # 2 is the exit code for changed
|
|
shell: bash
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: |
|
|
gh pr comment ${{ github.event.pull_request.number }} \
|
|
--body "The equivalence tests will be updated. Please verify the changes [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})."
|