diff --git a/.github/workflows/dev-cd.yml b/.github/workflows/dev-cd.yml index 3e46d8d..1a5fa7e 100644 --- a/.github/workflows/dev-cd.yml +++ b/.github/workflows/dev-cd.yml @@ -9,12 +9,28 @@ permissions: contents: read jobs: - deploy: + build: runs-on: ubuntu-22.04 steps: - name: Checkout code uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - 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: Grant execute permission for gradlew run: chmod +x gradlew diff --git a/.github/workflows/prod-cd.yml b/.github/workflows/prod-cd.yml index 461fe77..384bf34 100644 --- a/.github/workflows/prod-cd.yml +++ b/.github/workflows/prod-cd.yml @@ -9,12 +9,28 @@ permissions: contents: read jobs: - deploy: + build: runs-on: ubuntu-22.04 steps: - name: Checkout code uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - 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: Grant execute permission for gradlew run: chmod +x gradlew