Skip to content

Commit

Permalink
REFACTOR : workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubinquitous committed May 27, 2023
1 parent e67bc73 commit 1434780
Show file tree
Hide file tree
Showing 10 changed files with 131 additions and 66 deletions.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: "Bug \U0001F41E"
about: 무슨 오류가 났나요?
title: ''
labels: "Bug \U0001F41E"
assignees: ''

---

🐞 Describe


✅ Tasks
- [ ] 1.


🙋🏻 할 말
30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE/bug.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature ✨
about: 더 개발을 해야할 내용이 있다면?
title: ''
labels: "✨ Feature"
assignees: ''

---

✨ Describe


✅ Tasks
- [ ] 1.


🙋🏻 할 말
22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/feature.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/querstion.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/refactore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: "Refactor \U0001F528 "
about: 코드의 구조를 재구성 해봅시다..
title: ''
labels: "\U0001F528 Refactor"
assignees: ''

---

🔨 Describe


✅ Tasks
- [ ] 1.


🙋🏻 할 말
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: SonarCloud
on:
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu' # Alternative distribution options are available
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonarqube --info
36 changes: 36 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build
10 changes: 7 additions & 3 deletions components/Section/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { toast } from 'react-toastify'
const Header = () => {
const [search, setSearch] = React.useState('')
const [isHover, setIsHover] = React.useState(false)
const [delayHandler, setDelayHandeler] = React.useState<null | ReturnType<typeof setTimeout>>(null)
const [delayHandler, setDelayHandeler] = React.useState<null | ReturnType<typeof setTimeout>>(null)
const { isLogined } = useUser()
const router = useRouter()

Expand All @@ -22,7 +22,11 @@ const Header = () => {

const handleMouseEnter = () => {
if (isHover) return setIsHover(true)
setDelayHandeler(setTimeout(() => { setIsHover(true) }, 400))
setDelayHandeler(
setTimeout(() => {
setIsHover(true)
}, 400)
)
}

const handleMouseLeave = () => {
Expand All @@ -31,7 +35,7 @@ const Header = () => {
}

return (
<S.HeaderContainer onMouseOver={() => setIsHover(true)} onMouseLeave={() => setIsHover(false)}>
<S.HeaderContainer onMouseOver={handleMouseEnter} onMouseLeave={handleMouseLeave}>
<S.HeaderWrap>
<S.HeaderLink href={'/'}>
<S.HeaderLogo src="/images/logo.png" width="1000" height="1000" alt="logo" />
Expand Down

0 comments on commit 1434780

Please sign in to comment.