Skip to content

Commit

Permalink
Set up CI to run tests on PRs to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjarling committed Nov 21, 2023
1 parent 6aa8b0d commit 98ed28c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run Tests

on:
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

env:
NEXT_PUBLIC_BASE_PATH: /samvera.org

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]

- name: Get files
uses: actions/checkout@v3

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "pnpm"

- name: Install packages
run: pnpm install

- name: Run tests
run: pnpm test

0 comments on commit 98ed28c

Please sign in to comment.