From 795ba01a12af43ae469df93d770ab13928e48a53 Mon Sep 17 00:00:00 2001 From: Wooyeol Lee Date: Tue, 28 Nov 2023 20:31:11 +0900 Subject: [PATCH] fix: add test account key command for github action --- .github/workflows/springboot-on-pr.yaml | 1 + .github/workflows/springboot-on-push.yaml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/springboot-on-pr.yaml b/.github/workflows/springboot-on-pr.yaml index 20bd5948..253bd0ad 100644 --- a/.github/workflows/springboot-on-pr.yaml +++ b/.github/workflows/springboot-on-pr.yaml @@ -28,6 +28,7 @@ jobs: src/test/kotlin/com/goliath/emojihub/springboot/TestServiceAccountKey.json ls -al src/test/kotlin/com/goliath/emojihub/springboot/ + # Build & Test - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle diff --git a/.github/workflows/springboot-on-push.yaml b/.github/workflows/springboot-on-push.yaml index a0a5c7c9..3c555b20 100644 --- a/.github/workflows/springboot-on-push.yaml +++ b/.github/workflows/springboot-on-push.yaml @@ -25,6 +25,12 @@ jobs: distribution: 'temurin' cache: gradle + - name: Add test account key from secrets + run: | + echo "${{ secrets.FIREBASE_TEST_ACCOUNT_KEY }}" | base64 -d > \ + src/test/kotlin/com/goliath/emojihub/springboot/TestServiceAccountKey.json + ls -al src/test/kotlin/com/goliath/emojihub/springboot/ + # Build & Test - name: Grant execute permission for gradlew run: chmod +x gradlew