diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..873006a --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,36 @@ +name: Java CI with Gradle + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + # 1. checkout + - uses: actions/checkout@v3 + + # 2. Java 17 설정 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + # 3. properties 설정 + - name: Set up application.yml + run: | + mkdir -p src/main/resources + echo "${{ secrets.APPLICATION }}" > src/main/resources/application.yml + + # 4. gradlew build + - name: Build with Gradle + uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + with: + arguments: build \ No newline at end of file diff --git a/gradlew b/gradlew old mode 100644 new mode 100755