refactor: user notification #132
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Gradle | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Gradle Caching | |
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: Setup redis | |
uses: shogo82148/actions-setup-redis@v1.30.1 | |
with: | |
redis-version: 6.2.0 | |
redis-port: 6379 | |
auto-start: true | |
- name: injection application.yml | |
run: | | |
touch src/main/resources/application-dev.yml | |
touch src/main/resources/application-test.yml | |
echo "${{ secrets.DEV_YML }}" > src/main/resources/application-dev.yml | |
echo "${{ secrets.TEST_YML }}" > src/main/resources/application-test.yml | |
shell: bash | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew clean build --info |