Bump the actions group with 2 updates #2005
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: 'build-test' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Use Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 'lts/*' | |
| check-latest: true | |
| package-manager-cache: pnpm | |
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| name: Install pnpm | |
| with: | |
| run_install: | | |
| - recursive: true | |
| args: [--no-frozen-lockfile] | |
| - name: lint | |
| run: pnpm lint | |
| - name: build | |
| run: pnpm build | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| AWS_REGION: us-west-2 | |
| steps: | |
| - name: generate timestamp | |
| id: gen-timestamp | |
| run: echo "timestamp=$(date +%Y%m%d-%H%M%S)" >> $GITHUB_OUTPUT | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: configure aws credentials | |
| uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0 | |
| with: | |
| role-to-assume: ${{ secrets.AWS_OIDC_ROLE_ARN }} | |
| role-session-name: GitHubActions | |
| aws-region: ${{ env.AWS_REGION }} | |
| - name: Use Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24.x | |
| check-latest: true | |
| package-manager-cache: false | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| with: | |
| run_install: | | |
| - recursive: true | |
| args: [--no-frozen-lockfile] | |
| - name: create stack | |
| env: | |
| TIMESTAMP: ${{ steps.gen-timestamp.outputs.timestamp }} | |
| working-directory: test | |
| run: pnpm dlx aws-cdk@latest deploy -c timestamp=${TIMESTAMP} -c region=us-east-1 | |
| - uses: ./ | |
| id: stack-status | |
| with: | |
| stack-name: aws-cloudformation-stack-status-checker-test-${{ steps.gen-timestamp.outputs.timestamp }} | |
| region: us-east-1 | |
| - name: 'test' | |
| run: echo ${{ steps.stack-status.outputs.status }} | |
| - name: Remove for testing stack | |
| env: | |
| TIMESTAMP: ${{ steps.gen-timestamp.outputs.timestamp }} | |
| working-directory: test | |
| run: pnpm dlx aws-cdk@latest destroy -c name="${TIMESTAMP}" -c region=us-east-1 -f | |
| e2e-test: | |
| env: | |
| AWS_REGION: us-west-2 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Use Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 'lts/*' | |
| check-latest: true | |
| package-manager-cache: pnpm | |
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| name: Install pnpm | |
| with: | |
| run_install: | | |
| - recursive: true | |
| args: [--no-frozen-lockfile] | |
| - name: build | |
| run: pnpm build && pnpm package | |
| - name: configure aws credentials | |
| uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0 | |
| with: | |
| role-to-assume: ${{ secrets.AWS_OIDC_ROLE_ARN }} | |
| role-session-name: GitHubActions | |
| aws-region: ${{ env.AWS_REGION }} | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - uses: ./ | |
| id: stack-status | |
| with: | |
| stack-name: CDKToolkit | |
| - name: 'test' | |
| run: echo ${{ steps.stack-status.outputs.status }} |