generated from int128/typescript-actions-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (51 loc) · 1.57 KB
/
create-deploy-pull-request.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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:
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: ./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