Repository navigation
smoke tests: replace small/full with modern/legacy/windows (#627) #9
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: Smoke Tests | |
| on: | |
| pull_request: | |
| types: [labeled, opened, synchronize, reopened] | |
| paths: | |
| - "**.go" | |
| - "**.tf" | |
| - ".terraform.lock.hcl" | |
| - "go.mod" | |
| - "go.sum" | |
| - "examples/terraform/aws-simple/**" | |
| - ".github/workflows/smoke-tests.yaml" | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| smoke-modern: | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.event_name == 'push' || | |
| contains(github.event.pull_request.labels.*.name, 'smoke-test') || | |
| contains(github.event.pull_request.labels.*.name, 'smoke-modern') | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| - name: Run modern smoke test | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| run: make smoke-modern | |
| smoke-legacy: | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.event_name == 'push' || | |
| contains(github.event.pull_request.labels.*.name, 'smoke-test') || | |
| contains(github.event.pull_request.labels.*.name, 'smoke-legacy') | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| - name: Run legacy smoke test | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| run: make smoke-legacy | |
| smoke-windows: | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.event_name == 'push' || | |
| contains(github.event.pull_request.labels.*.name, 'smoke-test') || | |
| contains(github.event.pull_request.labels.*.name, 'smoke-windows') | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v3 | |
| - name: Run windows smoke test | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| run: make smoke-windows |