Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto assign 및 build 확인 #2

Merged
merged 3 commits into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# .github/workflows/auto-author-assign.yml
name: Auto Author Assign

on:
pull_request:
types: [opened, reopened]

permissions:
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected]
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: build-test

on:
pull_request:
branches: ["**"]
types: [labeled, unlabeled, opened, synchronize, reopened]

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

# Cancel previous workflows if they are the same workflow on same ref (branch/tags)
# with the same event (push/pull_request) even they are in progress.
# This setting will help reduce the number of duplicated workflows.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest

strategy:
# Node.js 버전을 20.x로 설정
matrix:
node-version: [20.x] # Node.js 20.x 버전 사용

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }} # Node.js 20.x 버전
cache: 'yarn'

# node_modules 캐시 설정
- name: Cache node_modules
id: node-modules-cache
uses: actions/cache@v4
with:
path: node_modules # 캐시할 경로
key: node-modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} # 캐시 키
restore-keys: | # 캐시 키가 없을 경우 대체할 키
node-modules-${{ runner.os }}-

# 의존성 설치
- name: Install dependencies
run: yarn install --frozen-lockfile

# ESLint 실행
- name: Run ESLint
run: yarn lint

# 프로젝트 빌드
- name: Build project
run: yarn build
10 changes: 4 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import js from '@eslint/js';
import globals from 'globals';
import prettierConfig from 'eslint-config-prettier';
import importPlugin from 'eslint-plugin-import';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import globals from 'globals';
import tseslint from 'typescript-eslint';
import prettierConfig from 'eslint-config-prettier';
import importPlugin from 'eslint-plugin-import';

export default tseslint.config(
{
Expand All @@ -15,7 +15,7 @@ export default tseslint.config(
extends: [
js.configs.recommended,
...tseslint.configs.recommended,
...importPlugin.configs.recommended,
importPlugin.flatConfigs.recommended,
prettierConfig,
],
languageOptions: {
Expand All @@ -27,10 +27,8 @@ export default tseslint.config(
},
},
plugins: {
'@typescript-eslint': tseslint.plugin,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
import: importPlugin,
},
rules: {
// TypeScript
Expand Down
Loading