feat: support deleting default VPCs in multiple regions #180
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: Tests | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths-ignore: | |
| - "README.md" | |
| push: | |
| branches: | |
| - main | |
| - release/v* | |
| paths-ignore: | |
| - '.github/**' | |
| - 'docs/**' | |
| - 'examples/**' | |
| - 'test/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| # ensure the code builds... | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v4 | |
| - name: Install Atmos | |
| uses: cloudposse/github-action-setup-atmos@v2 | |
| with: | |
| token: ${{ github.token }} | |
| install-wrapper: false | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| id: go | |
| - name: Get dependencies | |
| run: | | |
| go mod download | |
| - name: Build | |
| run: | | |
| atmos go build | |
| # run acceptance tests in a matrix with Terraform core versions | |
| test: | |
| name: Matrix Test | |
| needs: build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| terraform: | |
| - "0.13.6" | |
| - "0.14.11" | |
| - "0.15.5" | |
| - "1.3.2" | |
| - "1.5.7" | |
| - "1.6.3" | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v4 | |
| - name: Install Atmos | |
| uses: cloudposse/github-action-setup-atmos@v2 | |
| with: | |
| token: ${{ github.token }} | |
| install-wrapper: false | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| id: go | |
| - name: Install Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: ${{ matrix.terraform }} | |
| terraform_wrapper: false | |
| - name: Get dependencies | |
| run: | | |
| atmos go deps | |
| - name: TF acceptance tests | |
| timeout-minutes: 10 | |
| env: | |
| TF_ACC: "1" | |
| TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }} | |
| run: | | |
| atmos testacc | |
| release: | |
| needs: test | |
| if: github.event_name == 'push' | |
| uses: cloudposse/.github/.github/workflows/shared-go-auto-release.yml@main | |
| with: | |
| publish: true | |
| runs-on: '["runs-on=${{ github.run_id }}", "runner=large", "disk=large"]' | |
| secrets: inherit |