Skip to content

Commit

Permalink
✨ Github Actions 에서 lint, test 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh031224 committed Sep 5, 2021
1 parent 364b57e commit e8ad147
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: pull-request
on: pull_request
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Install yarn
run: npm install -g yarn
- name: Install Packages
run: yarn
- name: Eslint Check
run: yarn lint src/**/*.tsx src/**/*.ts --max-warnings=0
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Install yarn
run: npm install -g yarn
- name: Install Packages
run: yarn
- name: Testing Code
run: yarn test
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"type-check": "tsc",
"clear": "rm -rf .serverless && rm -rf .serverless_nextjs",
"deploy:dev": "yarn run clear && STAGE=dev serverless --verbose",
"deploy:prod": "yarn run clear && STAGE=prod serverless --verbose"
"deploy:prod": "yarn run clear && STAGE=prod serverless --verbose",
"lint": "eslint"
},
"dependencies": {
"axios": "^0.21.1",
Expand Down

0 comments on commit e8ad147

Please sign in to comment.