Skip to content

Commit

Permalink
add ci workflow
Browse files Browse the repository at this point in the history
run unit-tests
  • Loading branch information
yooouuri committed Jun 26, 2024
1 parent d8743a1 commit 39e029d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci

on:
push:
branches:
- '**'
pull_request:
branches:
- main

jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- uses: pnpm/action-setup@v4

- run: pnpm install

- name: Run unit tests
run: pnpm run unit-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 @@
"scripts": {
"dev": "unbuild --stub",
"build": "unbuild",
"test": "vitest"
"unit-test": "vitest"
},
"keywords": [
"vue",
Expand Down

0 comments on commit 39e029d

Please sign in to comment.