You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spring Boot 특정 profile에 h2를 datasource로 지정하여 github action 실행시키기
./github/workflows/CI.yml
# 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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradlename: CIon:
push:
branches:
- '**'pull_request:
types: [ opened, synchronize, reopened ]jobs:
build:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v2
- name: Set up JDK 17uses: actions/setup-java@v2with:
java-version: '17'distribution: 'adopt'cache: gradle
- name: Cache Gradle packagesuses: actions/cache@v2with:
path: ~/.gradle/cacheskey: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlewrun: chmod +x gradlew
- name: Build with Gradlerun: SPRING_PROFILES_ACTIVE=test ./gradlew clean build