From e48a9b8c2c706ee7d17369c8808b6e773e209003 Mon Sep 17 00:00:00 2001 From: Steve Rice Date: Tue, 16 Sep 2025 13:40:39 -0700 Subject: [PATCH] [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). --- .github/workflows/pull-request.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000000..f3681edb568 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,27 @@ +name: Pull Request Checks (Pinterest) +on: pull_request + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 ## Needed for Changesets to find `main` branch + + - uses: ./.github/actions/setup + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm run + + - name: Test + run: pnpm test +