Skip to content

Commit

Permalink
adding github actions to kick off tests
Browse files Browse the repository at this point in the history
  • Loading branch information
booherbg committed Nov 26, 2024
1 parent a5934c3 commit a91b407
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview",
"test": "vitest",
"test": "vitest run",
"coverage": "vitest run --coverage"
},
"dependencies": {
Expand Down

0 comments on commit a91b407

Please sign in to comment.