Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/pr-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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: install
run: |
npm ci
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- name: tests
run: |
npm ci
npm test
Loading