chore(deps): update dependency @aws-sdk/client-cloudformation to v3.6β¦ #485
This file contains 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
on: | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- 'v*' # exclude version tags | |
name: π Push main | |
concurrency: push_main | |
permissions: | |
id-token: write # this is required for AWS https://github.com/aws-actions/configure-aws-credentials#usage | |
env: | |
CI: true | |
AWS_REGION: eu-west-1 | |
STAGE: production | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build-and-test: | |
name: π Build & π§ͺ Test & π Deploy | |
runs-on: ubuntu-latest | |
environment: production | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
- name: Setup Node.js | |
id: setup-node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: pnpm | |
- name: Install Node.js dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Cache Rust build | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: 'rust-lambdas -> target' | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install Zig toolchain | |
uses: korandoru/[email protected] | |
with: | |
zig-version: 0.11.0 | |
- name: Install Cargo Lambda | |
uses: jaxxstorm/[email protected] | |
with: | |
repo: cargo-lambda/cargo-lambda | |
platform: linux | |
arch: x86_64 | |
- name: Build Rust Lambdas | |
run: pnpm build | |
- name: Check Rust code | |
run: cargo check-lambdas | |
- name: Test Rust code | |
run: cargo test-lambdas | |
- name: π§ͺ Check format | |
run: pnpm format-check | |
- name: π§ͺ Test linter | |
run: pnpm test-linter | |
- name: π Test types | |
run: pnpm test-type | |
- name: π Test unit | |
run: pnpm test-unit | |
- name: β Test CDK | |
run: pnpm test-cdk | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ env.AWS_REGION }} | |
role-to-assume: ${{ secrets.AWS_DEPLOY_ROLE }} | |
- name: CDK Bootstrap | |
run: pnpm run bootstrap | |
- name: π Deploy | |
run: pnpm run deploy --context stage=production | |
- name: π Run integration tests | |
run: pnpm test-integration | |
- name: π§Ή CDK garbage collection | |
run: pnpm run clean |