Use Terraform instead of CloudFormation for infra #2223
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: tests | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: { types: [opened, reopened, synchronize, ready_for_review] } | |
| push: { branches: [main] } | |
| jobs: | |
| unit-tests: | |
| permissions: | |
| contents: read | |
| uses: vapor/ci/.github/workflows/run-unit-tests.yml@main | |
| with: | |
| with_release_mode_testing: true | |
| with_coverage: false | |
| with_tsan: false | |
| with_api_check: false | |
| with_linting: true | |
| extra_flags: "--disable-experimental-prebuilts --explicit-target-dependency-import-check error -Xswiftc -require-explicit-sendable" | |
| terraform-lint: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup and run CloudFormation lint | |
| uses: ScottBrenner/cfn-lint-action@ed184e91f5085a2932501da8314e899e5e0ef5be # v2.7.1 | |
| with: | |
| command: cfn-lint -t ./deploy/penny-discord-bot-stack.yml | |
| - name: Setup mise | |
| uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4.1.0 | |
| - name: Lint | |
| env: | |
| # so tflint --init can dodge GH API rate limits by using this token | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: | | |
| ./scripts/tf-check.bash |