Skip to content

ci(linter): linter 및 git hook pre-commit, CI 적용 #2

ci(linter): linter 및 git hook pre-commit, CI 적용

ci(linter): linter 및 git hook pre-commit, CI 적용 #2

Workflow file for this run

name: Java CI with Gradle
on:
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Execute checkstyleMain
run: ./gradlew clean checkstyleMain
- name: Execute checkstyleTest
run: ./gradlew clean checkstyleTest