Skip to content

Commit

Permalink
ci: CI 스크립트 작성 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
donghoony authored Jul 23, 2024
1 parent a6f57ce commit ed3b448
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions backend/.github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build test with Gradle

on:
push:
branches:
- develop
paths:
- 'backend/**'
pull_request:
branches:
- develop

jobs:
build:
permissions:
contents: read
issues: read
checks: write
pull-requests: write
runs-on: ubuntu-latest

steps:
- name: Checkout to current repository
uses: actions/checkout@v4

- name: Setup JDK Corretto using cached gradle dependencies
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 17
cache: 'gradle'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: 8.8

- name: Build and test with gradle
run: ./gradlew test

- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
./build/test-results/**/*.xml

0 comments on commit ed3b448

Please sign in to comment.