Skip to content

Commit

Permalink
Add npm test Ci step
Browse files Browse the repository at this point in the history
  • Loading branch information
akonior committed Dec 19, 2023
1 parent ce4463b commit 2cc1176
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Run npm test

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "npx vitest",
"test": "npx vitest run",
"test:watch": "npx vitest watch",
"start": "vite --open",
"build": "vite build",
"preview": "vite preview"
Expand Down

0 comments on commit 2cc1176

Please sign in to comment.