From a2ef4af36189152f0570ed2074ce33a5964b3eb6 Mon Sep 17 00:00:00 2001 From: jihyo-j <84886198+jihyo-j@users.noreply.github.com> Date: Thu, 23 May 2024 15:28:49 +0900 Subject: [PATCH] Update build-test.yaml --- .github/workflows/build-test.yaml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 25e6e65..e2d879c 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -36,20 +36,14 @@ jobs: echo "${{ secrets.TEST_APPLICATION_YML }}" > baebae-BE/src/test/resources/application.yml echo "${{ secrets.APPLICATION_TEST_YML }}" > baebae-BE/src/test/resources/application-test.yml - - name: Create Firebase credentials file in main resources - run: | - printf '%s' "${{ secrets.FIREBASE_CREDENTIALS_JSON }}" > baebae-BE/src/main/resources/baebae-ff525-firebase-adminsdk-zbc8h-7fd10e518b.json - - name: Create Firebase credentials file in test resources - run: | - printf '%s' "${{ secrets.FIREBASE_CREDENTIALS_JSON }}" > baebae-BE/src/test/resources/baebae-ff525-firebase-adminsdk-zbc8h-7fd10e518b.json - - - name: Display Firebase credentials file in main resources - run: cat baebae-BE/src/main/resources/baebae-ff525-firebase-adminsdk-zbc8h-7fd10e518b.json - - - name: Display Firebase credentials file in test resources - run: cat baebae-BE/src/test/resources/baebae-ff525-firebase-adminsdk-zbc8h-7fd10e518b.json - + id: create-json + uses: jsdainell/create-json@1.1.2 + with: + name: "baebae-BE/src/test/resources/baebae-ff525-firebase-adminsdk-zbc8h-7fd10e518b.json" + json: ${{ secrets.FCM_CERTIFICATION}} + cat baebae-BE/src/test/resources/baebae-ff525-firebase-adminsdk-zbc8h-7fd10e518b.json + - name: Build with Gradle run: | cd baebae-BE