Skip to content

Commit

Permalink
chore: gradle 캐싱 로직 추가 (#39)
Browse files Browse the repository at this point in the history
* chore: gradle 캐싱 로직 추가

* chore: 이벤트 트리거 조건 수정
  • Loading branch information
helenason authored and fromitive committed Nov 28, 2024
1 parent 54271c2 commit 5d82848
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/backend-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches: [ "develop-BE" ]
paths: [ "backend/**" ]
pull_request:
branches: [ "develop-BE" ]
# pull_request:
# branches: [ "develop-BE" ]

jobs:

Expand All @@ -24,8 +24,18 @@ jobs:
java-version: '17'
distribution: 'corretto'

- name: Set up Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
- name: Gradle Caching
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# - name: Set up Gradle
# uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5

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

0 comments on commit 5d82848

Please sign in to comment.