Skip to content

Commit 5e6104c

Browse files
committed
[Pinterest Only] Add CI checks on pull requests
GitHub does not run workflows by default in forked repositories; indeed, we do not want to run the workflows in the parent repo (which include things like publishing artifacts). Instead, we create our own version of the `CI` workflow and will manually disable all the others (so those files can still be updated without merge conflict).
1 parent fb8745d commit 5e6104c

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Pull Request Checks (Pinterest)
2+
on: pull_request
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
12+
13+
- uses: ./.github/actions/setup
14+
15+
- name: Install dependencies
16+
run: pnpm install
17+
18+
- name: Build
19+
run: pnpm build
20+
21+
- name: Test
22+
run: pnpm test
23+
24+
- name: Generate docs
25+
working-directory: ./packages/docs
26+
run: pnpm run generate-docs
27+
28+
format:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: ./.github/actions/setup
33+
34+
- run: pnpm install
35+
name: Install dependencies
36+
37+
- run: pnpm run format:check
38+
name: Check formatting
39+
40+
lint:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: ./.github/actions/setup
45+
46+
- run: pnpm install
47+
name: Install dependencies
48+
49+
- run: pnpm run lint
50+
name: Lint

0 commit comments

Comments
 (0)