From 767c921378a3516e0cb89ae62199d07df1e25a38 Mon Sep 17 00:00:00 2001 From: Dan Debrunner Date: Tue, 15 Jul 2025 14:25:35 -0400 Subject: [PATCH 1/3] test: add pr-check workflow --- .github/workflows/pr-check.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pr-check.yaml diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml new file mode 100644 index 0000000..57416a7 --- /dev/null +++ b/.github/workflows/pr-check.yaml @@ -0,0 +1,26 @@ +name: PR Checker +on: + pull_request: + types: [opened, synchronize, reopened] + workflow_dispatch: + +# cancel a previous check if running +# this avoids concurrent checks when multiple commits +# are pushed to a PR branch in a short time frame +# head_ref || ref_name ensures a value exists. +concurrency: + group: cb-${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + +jobs: + run-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - name: tests + run: | + npm ci + npm test From 28558acd412d29e9bf5e576ff213144fb998be27 Mon Sep 17 00:00:00 2001 From: Dan Debrunner Date: Thu, 17 Jul 2025 13:27:51 -0400 Subject: [PATCH 2/3] Update pr-check.yaml --- .github/workflows/pr-check.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index 57416a7..01f9b11 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -20,6 +20,10 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "20" + - run: | + npm ci + - run: xvfb-run -a npm test + if: runner.os == 'Linux' - name: tests run: | npm ci From 7be34874ce066f7f9d64342b16256b4dfc218d3e Mon Sep 17 00:00:00 2001 From: Dan Debrunner Date: Thu, 17 Jul 2025 13:29:26 -0400 Subject: [PATCH 3/3] Update pr-check.yaml --- .github/workflows/pr-check.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index 01f9b11..8af4477 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -20,8 +20,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "20" - - run: | - npm ci + - name: install + run: | + npm ci - run: xvfb-run -a npm test if: runner.os == 'Linux' - name: tests