Skip to content

Commit

Permalink
Create aa.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SproutMJ authored May 22, 2024
1 parent 3d06f93 commit 80fbc60
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/aa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# WorkFlow For CI
# Build & Test
# Comment for Fail Test
# Gradle Cache
name: backend test for PR to develop

on:
pull_request:
branches: ["develop"]
paths:
- "backend/**"

defaults:
run:
working-directory: backend

permissions:
contents: read
checks: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: set up Repository
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "corretto"

- name: set up TimeZone
run: |
sudo timedatectl set-timezone Asia/Seoul
- name: Give permission for Gradle
run: chmod +x gradlew

- name: Cache Gradle
id: cache-gradle
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build

- name: Write Test Report
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: "**/build/test-results/test/TEST-*.xml"

- name: Comment(Annotation) for Failed Test
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: "**/build/test-results/test/TEST-*.xml"

0 comments on commit 80fbc60

Please sign in to comment.