Skip to content

Update dependency @aws-sdk/client-secrets-manager to v3.687.0 (resolve-aws-secret-version) #2599

Update dependency @aws-sdk/client-secrets-manager to v3.687.0 (resolve-aws-secret-version)

Update dependency @aws-sdk/client-secrets-manager to v3.687.0 (resolve-aws-secret-version) #2599

name: git-push-namespace
on:
pull_request:
paths:
- git-push-namespace/**
- '*.json'
- '*.yaml'
- .github/workflows/git-push-namespace.yaml
push:
branches:
- main
paths:
- git-push-namespace/**
- '*.json'
- '*.yaml'
- .github/workflows/git-push-namespace.yaml
defaults:
run:
working-directory: git-push-namespace
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20
- run: corepack enable pnpm
- 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@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm build
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.head_ref }} # avoid "shallow update not allowed" error
path: e2e-test-fixture
- name: Set up a fixture of overlay branch
working-directory: e2e-test-fixture
run: git push origin "HEAD:refs/heads/e2e-git-push-namespace-${{ github.run_number }}"
- name: Set up a fixture of namespace branch
working-directory: e2e-test-fixture
run: git push origin "HEAD:refs/heads/ns/monorepo-deploy-actions/e2e-git-push-namespace/ns-${{ github.run_number }}"
- uses: ./git-push-namespace
with:
overlay: e2e-git-push-namespace
namespace: ns-${{ github.run_number }}
destination-repository: ${{ github.repository }}
destination-branch: e2e-git-push-namespace-${{ github.run_number }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: e2e-git-push-namespace-${{ github.run_number }}
path: git-push-namespace/actual
- run: find actual -type f
- run: test -f actual/monorepo-deploy-actions/e2e-git-push-namespace/ns-${{ github.run_number }}.yaml
- name: Clean up the overlay branch
continue-on-error: true
if: always()
run: |
git push origin --delete "refs/heads/e2e-git-push-namespace-${{ github.run_number }}"
- name: Clean up the namespace branch
continue-on-error: true
if: always()
run: |
git push origin --delete "refs/heads/ns/monorepo-deploy-actions/e2e-git-push-namespace/ns-${{ github.run_number }}"