-
Notifications
You must be signed in to change notification settings - Fork 1
155 lines (129 loc) · 4.22 KB
/
pull-request-main.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: pull-request-main
on:
merge_group:
pull_request:
branches:
- main
jobs:
ci-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (needed to reference local action)
uses: actions/checkout@v4.2.1
- name: ci-lint
uses: ./actions/ci-lint-ts
with:
# general inputs
checkout-repo: "false"
pnpm-version: "^9.0.0"
ci-prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (needed to reference local action)
uses: actions/checkout@v4.2.1
- name: ci-prettier
uses: ./actions/ci-prettier
with:
# general inputs
checkout-repo: "false"
pnpm-version: "^9.0.0"
ci-lint-misc:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (needed to reference local action)
uses: actions/checkout@v4.2.1
- name: ci-lint-misc
uses: ./actions/ci-lint-misc
with:
# general inputs
checkout-repo: "false"
cd-signed-commits:
# Disable this job until it's updated to be:
# 1. More generalizable for all workspaces requiring build artifacts
# 2. Have better attribution for the commits generated from this workflow
if: false
runs-on: ubuntu-latest
steps:
- name: Checkout repo (needed to reference local action)
uses: actions/checkout@v4.2.1
with:
# Commit back any changes based on the commit that triggered this action
# rather than merge commit of main into the PR branch
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup pnpm
uses: ./actions/setup-nodejs
with:
pnpm-version: "^9.0.0"
- name: Build signed-commits
run: pnpm nx run signed-commits:build
- name: Commit back any changes
uses: planetscale/ghcommit-action@b68767a2e130a71926b365322e62b583404a5e09 # v0.1.43
with:
commit_message: "🤖 Update build"
repo: ${{ github.repository }}
branch: ${{ github.head_ref || github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ci-signed-commits:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (needed to reference local action)
uses: actions/checkout@v4.2.1
- name: Setup pnpm
uses: ./actions/setup-nodejs
with:
pnpm-version: "^9.0.0"
- name: Run tests for signed-commits
run: pnpm nx run signed-commits:test
ci-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (needed to reference local action)
uses: actions/checkout@v4.2.1
- name: ci-test
uses: ./actions/ci-test-ts
with:
# general inputs
checkout-repo: "false"
pnpm-version: "^9.0.0"
ci-build-artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (needed to reference local action)
uses: actions/checkout@v4.2.1
- name: ci-build-artifacts
uses: ./actions/cicd-build-publish-artifacts-ts
with:
# general inputs
checkout-repo: "false"
pnpm-version: "^9.0.0"
ci-actions-dependencies-updater:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (needed to reference local action)
uses: actions/checkout@v4.2.1
- name: Setup pnpm
uses: ./actions/setup-nodejs
with:
pnpm-version: "^9.0.0"
- name: Run typecheck for actions-dependencies-updater
shell: bash
run: pnpm nx run actions-dependencies-updater:typecheck
- name: Run unit tests for actions-dependencies-updater
shell: bash
run: pnpm nx run actions-dependencies-updater:test
ci-gha-workflow-validator:
runs-on: ubuntu-latest
steps:
- name: Checkout repo (needed to reference local action)
uses: actions/checkout@v4.2.1
- name: Setup pnpm
uses: ./actions/setup-nodejs
with:
pnpm-version: "^9.0.0"
- name: Run build for gha-workflow-validator
shell: bash
run: pnpm nx run gha-workflow-validator:build
- name: Run unit tests for gha-workflow-validator
shell: bash
run: pnpm nx run gha-workflow-validator:test