Skip to content

Commit

Permalink
Add build and test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
haroldadmin committed Apr 5, 2024
1 parent cc7f984 commit 936da03
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build

on:
- push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "npm"
- run: npm ci
- run: npm run build --if-present
- run: npm test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"build": "tsc",
"format": "prettier -w .",
"test": "vitest"
"test": "vitest run",
"test:watch": "vitest"
},
"author": "haroldadmin",
"license": "ISC",
Expand Down

0 comments on commit 936da03

Please sign in to comment.