Skip to content

Commit

Permalink
GitHub Actionsのテストワークフローを追加し、lintスクリプトをpackage.jsonに追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Dec 7, 2024
1 parent dbf4bdd commit d5a3d97
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test

on:
push:
pull_request:
workflow_dispatch:

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

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"

- shell: bash
run: npm ci

- run: npm run lint
- run: npm run test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
}
},
"scripts": {
"lint": "prettier --check ./src/",
"fmt": "prettier --write ./src/",
"test": "node --test"
},
Expand Down

0 comments on commit d5a3d97

Please sign in to comment.