Update dependency @aws-sdk/client-secrets-manager to v3.830.0 (resolve-aws-secret-version) #1646
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: bootstrap-pull-request | |
on: | |
pull_request: | |
paths: | |
- bootstrap-pull-request/** | |
- '*.json' | |
- '*.yaml' | |
- .github/workflows/bootstrap-pull-request.yaml | |
push: | |
branches: | |
- main | |
paths: | |
- bootstrap-pull-request/** | |
- '*.json' | |
- '*.yaml' | |
- .github/workflows/bootstrap-pull-request.yaml | |
defaults: | |
run: | |
working-directory: bootstrap-pull-request | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
with: | |
node-version: 20 | |
- run: npm install -g pnpm@latest-10 | |
- run: pnpm i | |
- run: pnpm test | |
e2e-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
with: | |
node-version: 20 | |
- run: npm install -g pnpm@latest-10 | |
- run: pnpm i | |
- run: pnpm build | |
- run: | | |
git config --global user.email '[email protected]' | |
git config --global user.name 'github-actions' | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
ref: ${{ github.head_ref }} # avoid "shallow update not allowed" error | |
path: prebuilt-branch | |
- name: Set up an prebuilt branch | |
working-directory: prebuilt-branch | |
run: | | |
cp -av "$GITHUB_WORKSPACE/bootstrap-pull-request/tests/fixtures/prebuilt/." . | |
git add . | |
git commit -m "Add prebuilt branch for e2e-test of ${GITHUB_REF}" | |
git push origin "HEAD:refs/heads/bootstrap-pull-request-e2e-prebuilt-${{ github.run_id }}" | |
- uses: ./bootstrap-pull-request | |
with: | |
overlay: overlay-${{ github.run_id }} | |
namespace: pr-${{ github.event.number }} | |
destination-repository: ${{ github.repository }} | |
prebuilt-branch: bootstrap-pull-request-e2e-prebuilt-${{ github.run_id }} | |
namespace-manifest: bootstrap-pull-request/tests/fixtures/namespace.yaml | |
substitute-variables: NAMESPACE=pr-${{ github.event.number }} | |
# the action should be idempotent | |
- uses: ./bootstrap-pull-request | |
with: | |
overlay: overlay-${{ github.run_id }} | |
namespace: pr-${{ github.event.number }} | |
destination-repository: ${{ github.repository }} | |
prebuilt-branch: bootstrap-pull-request-e2e-prebuilt-${{ github.run_id }} | |
namespace-manifest: bootstrap-pull-request/tests/fixtures/namespace.yaml | |
substitute-variables: NAMESPACE=pr-${{ github.event.number }} | |
- name: Clean up the namespace branch | |
continue-on-error: true | |
if: always() | |
run: | | |
git push origin --delete "refs/heads/ns/monorepo-deploy-actions/overlay-${{ github.run_id }}/pr-${{ github.event.number }}" | |
- name: Clean up the prebuilt branch | |
continue-on-error: true | |
if: always() | |
run: | | |
git push origin --delete "refs/heads/bootstrap-pull-request-e2e-prebuilt-${{ github.run_id }}" |