Be/dev/cron #1
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: backend CI | |
on: | |
push: | |
paths: | |
- "cron/**" | |
pull_request: | |
paths: | |
- "cron/**" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Make ssh file | |
run: | | |
mkdir -p ~/.ssh | |
echo '${{ secrets.SSH_CONFIG }}' | base64 -d > ~/.ssh/id_rsa | |
chmod 400 ~/.ssh/id_rsa | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodule: true | |
- name: Update submodule | |
run: | | |
git submodule update --init config/ | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: "17" | |
distribution: "corretto" | |
- name: Cache Gradle packages | |
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: Build with Gradle | |
run: | | |
cd cron | |
chmod +x gradlew | |
./gradlew build | |
shell: bash |