Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdw0823 authored Nov 15, 2024
1 parent 1e80393 commit 60344cd
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- main
- develop
pull_request:

permissions:
Expand All @@ -22,6 +22,18 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Set up secret yml file
env:
YAML_SECRET: ${{ secrets.YAML_SECRET }}
YAML_DIR: src/main/resources
YAML_TEST_DIR: src/test/resources
YAML_FILE_NAME: application.yml
run: |
echo $YAML_SECRET | base64 --decode > $YAML_DIR/$YAML_FILE_NAME
echo $YAML_SECRET | base64 --decode > $YAML_TEST_DIR/$YAML_FILE_NAME
echo "YAML_SECRET has been decoded and saved to $YAML_DIR/$YAML_FILE_NAME"
echo "YAML_SECRET has been decoded and saved to $YAML_TEST_DIR/$YAML_FILE_NAME"
- name: Start Redis
uses: supercharge/[email protected]
with:
Expand All @@ -31,4 +43,4 @@ jobs:
run: chmod +x gradlew

- name: test
run: ./gradlew test
run: ./gradlew test

0 comments on commit 60344cd

Please sign in to comment.