Skip to content

Commit

Permalink
refactor: gitActions 설정 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-so committed Mar 25, 2024
1 parent 945ccb8 commit ecf1235
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 80 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/ci-pr.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/ci-push.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ci

on:
pull_request:
branches: [ "main", "develop" ]

jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution:
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonar --info

0 comments on commit ecf1235

Please sign in to comment.