Skip to content

Commit

Permalink
[Refactor/#305] 액션 개선 및 수정 (#306)
Browse files Browse the repository at this point in the history
* feat: gradle 캐시 적용

* refactor: 액션 동작 조건 수정

* refactor: Validate Test 액션 동작 조건 수정
  • Loading branch information
belljun3395 authored Aug 5, 2024
1 parent d839b8a commit 451bcb6
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/code-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Cache Gradle
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: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ecs-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Cache Gradle
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: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ecs-dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Cache Gradle
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: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/sql-explain-hook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Sql Explain Hook

on:
pull_request:
branches: ["main"]
types: [ opened ]
branches: [ "main", "dev" ]
workflow_dispatch:

env:
Expand All @@ -14,12 +15,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Cache Gradle
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: Jooq Code Generation
run: |
./gradlew --info jooqCodegenAll
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Integration Test
name: Validate Test

on:
pull_request:
branches: [ "main" ]
branches: [ "dev" ]
workflow_dispatch:

permissions:
Expand All @@ -22,6 +22,16 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Cache Gradle
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: Jooq Code Generation
run: |
./gradlew --info jooqCodegenAll
Expand Down

0 comments on commit 451bcb6

Please sign in to comment.