Merge pull request #346 from GSM-MSG/345-fix/existbydateandperiodsand… #156
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: 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 |