Skip to content

Commit

Permalink
chore: ci action 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
syoung125 committed Jul 28, 2023
1 parent 1db02a6 commit ca76409
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on: [push]

jobs:
build:
name: CI
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ["12", "14"]

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install yarn
run: npm install -g yarn

- name: Install the project dependencies
run: yarn install

- name: Prettier check
run: yarn prettier

- name: Lint check
run: yarn lint

- name: Stylelint check
run: yarn lint:css

- name: Type check
run: yarn type-check
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint",
"lint:css": "stylelint --ignore-path .gitignore '**/*.scss'",
"prettier": "prettier --write **/*.{ts,tsx}",
"type-check": "tsc --noEmit",
"storybook": "storybook dev -p 6006 -s ./public",
"build-storybook": "storybook build -s ./public",
"test-storybook": "test-storybook",
Expand Down

0 comments on commit ca76409

Please sign in to comment.