Skip to content

Commit

Permalink
Ensure PR Manager tests are run in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingdutch committed Apr 14, 2024
1 parent bf7786b commit 75c3279
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/prManagerTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Run the autoamted test suite for the PR manager in case it changes.
name: PR Manager Test

on:
pull_request:
paths:
# Only run in case the PR Manager code changes.
- '.github/prManager'

# We use the default concurrency grouping of allowing a single workflow per branch/PR/tag to run at the same time.
# In case of PRs we only care about the results for the last workflow run, so we cancel workflows already in progress
# when new code is pushed, in all other cases (branches/tags) we want to have a history for commits so it's easier to
# find breakages when they occur (head_ref is non-empty only when the workflow is triggered from a PR).
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.head_ref != '' }}

defaults:
run:
shell: bash

manage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
working-directory: ./.github/prManager

- run: npm run test
working-directory: ./.github/prManager

0 comments on commit 75c3279

Please sign in to comment.