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

[BG-12] CI 구현 (0.2H/1H) #1

Merged
merged 2 commits into from
Jun 19, 2024
Merged

[BG-12] CI 구현 (0.2H/1H) #1

merged 2 commits into from
Jun 19, 2024

Conversation

Dltmd202
Copy link
Member

@Dltmd202 Dltmd202 commented Jun 19, 2024

Why

테스트 자동화를 통한 지속적 통합 추구

How

name: 'CI'

on:
  push:
    branches:
      - 'main'
      - 'develop'
  pull_request:
    branches:
      - 'main'
      - 'develop'

jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/[email protected]

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

      - name: Cache Gradle packages
        uses: actions/[email protected]
        with:
          path: ~/.gradle/caches
          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
          restore-keys: |
            ${{ runner.os }}-gradle-

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

      - name: Build with Gradle
        run: ./gradlew build

      - name: Run tests
        run: ./gradlew test

Result

image

성공~🤩

Link

BG-12
// jira 혹은 figma 링크를 작성합니다. (Jira ISSUE 번호)

@Dltmd202 Dltmd202 requested a review from GGHDMS June 19, 2024 13:06
@Dltmd202 Dltmd202 self-assigned this Jun 19, 2024
@Dltmd202 Dltmd202 merged commit 016c0ce into main Jun 19, 2024
1 check passed
@Dltmd202 Dltmd202 deleted the feature/BG-12 branch June 19, 2024 13:11
@Dltmd202 Dltmd202 changed the title [BG-12] CI 구현 [BG-12] CI 구현 (0.1H/1H) Jun 19, 2024
@Dltmd202 Dltmd202 changed the title [BG-12] CI 구현 (0.1H/1H) [BG-12] CI 구현 (0.2H/1H) Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant