Skip to content

[cd] jib 캐싱 테스트 #32

[cd] jib 캐싱 테스트

[cd] jib 캐싱 테스트 #32

Workflow file for this run

name: CI
on:
push:
branches:
- prod
- dev
pull_request:
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: create secure file
run: |
cd src/main/resources
touch secure.properties
echo "${{ secrets.SECURE }}" >> secure.properties
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Grant execute permission to Gradle Wrapper
run: chmod +x ./gradlew
- name: Build and analyze
run: ./gradlew build jacocoTestReport sonar --info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}