Skip to content

Commit 1c776ad

Browse files
authored
Merge pull request #15 from ymrl/add_pull_request_test_and_lint
👍 GitHub Actions でのPull Request時のtestとlintを追加
2 parents c62fd59 + 08a59e0 commit 1c776ad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Pull Request Test and Lint
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test_and_lint:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version-file: .node-version
18+
cache: 'npm'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- run: npm run lint
24+
25+
- run: npm run test

0 commit comments

Comments
 (0)