Split action dependencies #1727
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: create-deploy-pull-request | |
on: | |
pull_request: | |
paths: | |
- create-deploy-pull-request/** | |
- '*.json' | |
- '*.yaml' | |
- .github/workflows/create-deploy-pull-request.yaml | |
push: | |
branches: | |
- main | |
paths: | |
- create-deploy-pull-request/** | |
- '*.json' | |
- '*.yaml' | |
- .github/workflows/create-deploy-pull-request.yaml | |
defaults: | |
run: | |
working-directory: create-deploy-pull-request | |
jobs: | |
autofix: | |
uses: ./.github/workflows/autofix.yaml | |
with: | |
working-directory: create-deploy-pull-request | |
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 | |
- uses: ./create-deploy-pull-request | |
with: | |
head-branch: main | |
base-branch: create-deploy-pull-request--e2e-test--${{ github.run_number }} | |
title: E2E test of create-deploy-pull-request | |
body: E2E test of create-deploy-pull-request | |
- if: always() | |
run: git push origin --delete 'refs/heads/create-deploy-pull-request--e2e-test--${{ github.run_number }}' | |
continue-on-error: true |