Skip to content

Commit

Permalink
STEP2: main 푸시 or main 타겟으로 PR 생성 시 검증할 수 있도록 CI 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
kez-lab committed Dec 27, 2024
1 parent 19881fd commit a2da864
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Sample Workflow

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Run Tests
run: ./gradlew test

- name: Verify Lint
run: ./gradlew lint

0 comments on commit a2da864

Please sign in to comment.