Skip to content

Commit

Permalink
fix: add test account key command for github action
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisWooyeol committed Nov 28, 2023
1 parent 7d98a33 commit 795ba01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/springboot-on-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/springboot-on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 795ba01

Please sign in to comment.