Skip to content

Merge branch 'main' of https://github.com/KUIT-Couphone/Couphone-Serv… #110

Merge branch 'main' of https://github.com/KUIT-Couphone/Couphone-Serv…

Merge branch 'main' of https://github.com/KUIT-Couphone/Couphone-Serv… #110

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ "main", "feature/*" ]
pull_request:
branches: [ "main" ]
permissions:
write-all
env:
CLOUDFRONT_DOMAIN: ${{secrets.CLOUDFRONT_DOMAIN}}
DATASOURCE_PASSWORD_DEV: ${{secrets.DATASOURCE_PASSWORD_DEV}}
DATASOURCE_URL_DEV: ${{secrets.DATASOURCE_URL_DEV}}
DATASOURCE_USERNAME_DEV: ${{secrets.DATASOURCE_USERNAME_DEV}}
S3_SECRET_KEY: ${{secrets.S3_SECRET_KEY}}
S3_ACCESS_KEY: ${{secrets.S3_ACCESS_KEY}}
JWT_SECRET_KEY: ${{secrets.JWT_SECRET_KEY}}
JWT_EXPIRED_IN: ${{secrets.JWT_EXPIRED_IN}}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Setup MySQL
uses: mirromutth/[email protected]
with:
host port: 3306
container port: 3306
mysql database: 'couphone-database'
mysql user: ${{secrets.DATASOURCE_USERNAME_DEV}}
mysql password: ${{secrets.DATASOURCE_PASSWORD_DEV}}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build