Skip to content

상품 수정시 동시 수정 문제 #28

상품 수정시 동시 수정 문제

상품 수정시 동시 수정 문제 #28

Workflow file for this run

name: CI
on:
push:
branches:
- dev
pull_request:
branches:
- main
- dev
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
services:
docker:
image: docker:19.03.12
options: --privileged
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v2
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: Start Docker Compose services
run: docker-compose -f ./docker/docker-compose.yml up -d
- name: Start flyway
run: ./gradlew flywayClean flywayBaseline flywayMigrate
- name: Build and analyze
run: ./gradlew build jacocoTestReport sonar --info
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}