Update eslint #2397
Workflow file for this run
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
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: 20 | |
- run: corepack enable pnpm | |
- run: pnpm i | |
- run: pnpm build | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
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 }}" |