Skip to content

Commit

Permalink
Chore | #4 | @lcomment | CI 파일 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
lcomment committed May 2, 2024
1 parent a82a450 commit 66b908b
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Cakk CI (all branch)

on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master

permissions: write-all

jobs:
build:
name: Build
runs-on: ubuntu-latest
environment: Cakk-CI

steps:
- name: Get Current Time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DDTHH:mm:ss
timezone: 'Asia/Seoul'

- name: Print Current Time
run: echo "Current Time=${{steps.current-time.outputs.formattedTime}}"
shell: bash

- name: Checkout
uses: actions/checkout@v3

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

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

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

- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# - name: publish unit test results
# uses: EnricoMi/publish-unit-test-result-action@v2
# if: always()
# with:
# files: ./cakk-api/build/test-results/**/*.xml

# - name: Upload test coverage
# id: jacoco
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: ./codecov.yml
# directory: ./lovebird-api/build/reports/jacoco/test
# fail_ci_if_error: true
# continue-on-error: true

0 comments on commit 66b908b

Please sign in to comment.