Skip to content

Commit

Permalink
Merge pull request #44 from CarrotAuction/chore/#41
Browse files Browse the repository at this point in the history
Chore/#41 ci 설정
  • Loading branch information
Leeseunghwan7305 authored Nov 30, 2023
2 parents 7ce9841 + e79b371 commit d713fa1
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]

steps:
- name: Checkout project.
uses: actions/checkout@v3

- name: Check Node v
run: node -v

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "dir=$(npm cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/npm.lock') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install the project dependencies
run: npm ci

- name: Prettier check
run: npm run prettier
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const nextConfig = {
reactStrictMode: true,
images: {
domains: ["imguploads3.s3.ap-northeast-2.amazonaws.com"],
domains: ['imguploads3.s3.ap-northeast-2.amazonaws.com'],
},
};

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"eslintIgnore": "build/*",
"test": "jest --watch --coverage",
"test:ci": "jest --ci",
"prettier": "prettier --write **/*.{ts,tsx}",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {},
autoprefixer: {},
},
}
};

0 comments on commit d713fa1

Please sign in to comment.