Skip to content

Commit

Permalink
Merge pull request #2 from squarefeet/add-unit-test-automation
Browse files Browse the repository at this point in the history
Create unit-test.yml
  • Loading branch information
squarefeet authored Dec 5, 2023
2 parents 8a949e8 + 2a96450 commit 913d4a1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Node.js CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Run unit tests
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm ci
- run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"build": "tsc && vite build",
"preview": "vite preview",
"test": "vitest && npm run test:browser",
"test:browser": "yarn test:browser:chrome && yarn test:browser:firefox",
"test:browser": "npm run test:browser:chrome",
"test:browser:chrome": "vitest --config vitest-browser.config.ts --browser=chrome",
"test:browser:firefox": "vitest --config vitest-browser.config.ts --browser=firefox"
},
Expand Down

0 comments on commit 913d4a1

Please sign in to comment.