Skip to content

feat : ci pipe 생성 및 도커파일 생성 #9

feat : ci pipe 생성 및 도커파일 생성

feat : ci pipe 생성 및 도커파일 생성 #9

name: pr-ci-pipeline
on:
pull_request:
branches: [ main, develop, feature/*, staging ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Install Gradle
run: |
sudo apt update
sudo apt install -y gradle
- name: Run Checkstyle
run: |
./gradlew checkstyleMain checkstyleTest --continue
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run tests
run: ./gradlew test --continue
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Install Gradle
run: |
sudo apt update
sudo apt install -y gradle
- name: Build Project
run: |
./gradlew build --continue