fix: Preserve streams resources when migrating workspace aliases #16114
Workflow file for this run
This file contains hidden or 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: 'Code Health' | |
| # Set of validations run on each pull request and merged commits to master. | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - v1-lts | |
| paths-ignore: # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths | |
| - '*.md' | |
| - 'examples/**' | |
| - 'LICENSE' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: {} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Setup, build and verify | |
| run: make tools build verify | |
| unit-test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write # Needed by sticky-pull-request-comment | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| # Avoid: cannot run Terraform provider tests: error calling terraform version command: fork/exec /tmp/plugintest-terraformXXX/terraform: text file busy also speeds up the tests as terraform will already exist on path. | |
| # Also speeds up the tests | |
| - uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e | |
| with: | |
| terraform_version: '1.15.x' | |
| terraform_wrapper: false | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Unit Test | |
| run: make test | |
| github-linters: | |
| runs-on: ubuntu-latest | |
| permissions: {} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: actionlint | |
| run: | | |
| make tools | |
| echo "::add-matcher::.github/actionlint-matcher.json" | |
| actionlint -color | |
| - name: Run ShellCheck | |
| uses: bewuethr/shellcheck-action@80bac2daa9fcf95d648200a793d00060857e6dc4 | |
| generate-doc-check: | |
| runs-on: ubuntu-latest | |
| permissions: {} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | |
| - uses: hashicorp/setup-terraform@dfe3c3f87815947d99a8997f908cb6525fc44e9e | |
| with: | |
| terraform_version: '1.15.x' | |
| terraform_wrapper: false | |
| - run: make tools generate-docs-all | |
| - name: Find mutations | |
| id: self_mutation | |
| run: |- | |
| git add . | |
| git diff --staged --patch --exit-code > doc.repo.patch || echo "self_mutation_happened=true" >> "${GITHUB_OUTPUT}" | |
| - name: Fail build on mutation | |
| if: steps.self_mutation.outputs.self_mutation_happened | |
| run: |- | |
| echo "::error::Files were changed during build (see build log). If this was triggered from a fork, you will need to update your branch." | |
| cat doc.repo.patch | |
| exit 1 | |
| call-acceptance-tests-workflow: | |
| needs: [build, github-linters, unit-test, generate-doc-check] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| secrets: inherit | |
| uses: ./.github/workflows/acceptance-tests.yml | |
| with: | |
| reduced_tests: true |