Skip to content

Commit

Permalink
test action
Browse files Browse the repository at this point in the history
  • Loading branch information
masaya48 committed Feb 16, 2024
1 parent af2d04e commit f71a92f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test
on:
push:
branches:
- main
pull_request:

jobs:
Install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install
Test:
runs-on: ubuntu-latest
needs: Install
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install
- run: npm run test
Lint:
runs-on: ubuntu-latest
needs: Install
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install
- run: npm run lint


7 changes: 7 additions & 0 deletions app/dummy.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, expect, test } from 'vitest'

describe('dummy', () => {
test('dummy', () => {
expect(1+1).toBe(2);
})
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"test": "vitest",
"test:ci": "vitest --run",
"format": "prettier --write ."
},
"dependencies": {
Expand Down

0 comments on commit f71a92f

Please sign in to comment.