Skip to content

Commit 97470c6

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 `Integration` workflow and will manually disable all the others (so those files can still be updated without merge conflict).
1 parent d1b7b63 commit 97470c6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Pull Request Checks (Pinterest)
2+
on: pull_request
3+
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0 ## Needed for Changesets to find `main` branch
16+
17+
- uses: ./.github/actions/setup
18+
19+
- name: Install dependencies
20+
run: pnpm install
21+
22+
- name: Build
23+
# skip the packages that take the longest to build
24+
run: pnpm run --filter='!...^@typespec/html-program-viewer' --filter='!...^@typespec/playground' --filter='!typespec-vs*' build
25+
26+
- name: Test
27+
run: pnpm --filter='!...^@typespec/html-program-viewer' --filter='!...^@typespec/playground' --filter='!typespec-vs*' test
28+

0 commit comments

Comments
 (0)