Skip to content

🔀 :: custom repository condition #155

🔀 :: custom repository condition

🔀 :: custom repository condition #155

Workflow file for this run

name: GCMS-CI
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "*" ]
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup MySQL
uses: samin/mysql-action@v1.1
with:
host port: 3306
container port: 3306
mysql database: 'gcms'
mysql user: ${{ secrets.GCMS_MYSQL_USER }}
mysql password: ${{ secrets.GCMS_MYSQL_PASSWORD }}
- name: Start Redis
uses: supercharge/redis-github-action@1.4.0
with:
redis-version: 7
redis-port: 6379
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create application.yml
run: |
rm ./src/main/resources/application.yml
touch ./src/main/resources/application.yml
echo "${{ secrets.APPLICATION_YML }}" >> ./src/main/resources/application.yml
shell: bash
- name: Build with Gradle
run: ./gradlew clean build