Skip to content

Commit

Permalink
Add workflow to test pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
DallasHoff committed Oct 31, 2024
1 parent bb6c22b commit 7dcd7ce
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test pull request
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v4
- name: Install Dependencies
run: 'npm ci'
- name: Run Tests
run: 'npm run test:ci'
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
"build": "tsc --project tsconfig.build.json",
"test": "vitest",
"test:ui": "vitest --ui",
"test:ci": "vitest run",
"format": "prettier . --write",
"format:check": "prettier . --check",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
Expand Down

0 comments on commit 7dcd7ce

Please sign in to comment.