Skip to content

Commit

Permalink
fix: CI가 서브모듈 경로를 못찾는 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
hongdosan committed Nov 1, 2023
1 parent a0093b2 commit 3d20a3f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 37 deletions.
74 changes: 38 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
name: ci

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

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
token: ${{ secrets.MOABAM_SUBMODULE_KEY }}

- name: JDK 17 셋업
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: JDK 17 셋업
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: 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: 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: Gradle Grant 권한 부여
run: chmod +x gradlew
- name: Gradle Grant 권한 부여
run: chmod +x gradlew

- name: SonarCloud 캐싱
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: SonarCloud 캐싱
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: 빌드 및 분석
run: ./gradlew build jacocoTestReport sonar --info --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }}
- name: 빌드 및 분석
run: ./gradlew build jacocoTestReport sonar --info --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_CLOUD_TOKEN }}
2 changes: 1 addition & 1 deletion src/main/java/com/moabam/global/config/FcmConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@EnableScheduling
public class FcmConfig {

private static final String FIREBASE_PATH = "resources/config/moabam-firebase.json";
private static final String FIREBASE_PATH = "config/moabam-firebase.json";

@Bean
public FirebaseMessaging firebaseMessaging() {
Expand Down

0 comments on commit 3d20a3f

Please sign in to comment.