Skip to content

Commit

Permalink
chore : Gradle Check 수행하는 CI Workflows 작성 (#9)
Browse files Browse the repository at this point in the history
* chore : Pull Request Open, Sync, Closed시 Gradle Build를 수행하는 Workflows 작성

* fix: develop에만 default type으로 적용하도록 수정

* chore: path filter 제거

* chore: gradle-build-action 사용

build task 아닌 check task

* chore: workflow name 수정

* remove: permission 제거

default permission 사용

* remove: 중복되는 cache 설정 제거

gradle-build-action에서 설정했으므로 불필요

* remove: permission 설정 제거

---------

Co-authored-by: [email protected] <[email protected]>
  • Loading branch information
binary-ho and Sangwook02 authored Jan 23, 2024
1 parent d0e1bf8 commit 734e690
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pull_request_gradle_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name : Check Style and Test to Develop

on:
pull_request:
branches: [ "develop" ]

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- name: Git Checkout
uses: actions/[email protected]

- name: JDK 설치
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: gradlew 권한 부여
run: chmod +x ./gradlew

- name: Gradle Build
uses: gradle/gradle-build-action@v2
with:
arguments: check
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}

0 comments on commit 734e690

Please sign in to comment.