Skip to content

feat: ์นด์นด์˜ค ๋กœ๊ทธ์ธ ๊ตฌํ˜„ #83

feat: ์นด์นด์˜ค ๋กœ๊ทธ์ธ ๊ตฌํ˜„

feat: ์นด์นด์˜ค ๋กœ๊ทธ์ธ ๊ตฌํ˜„ #83

Workflow file for this run

name: 'PR CI'

Check failure on line 1 in .github/workflows/pr-ci.yml

View workflow run for this annotation

GitHub Actions / PR CI

Invalid workflow file

The workflow is not valid. .github/workflows/pr-ci.yml: Expected stream end parse event
on:
pull_request_target:
types: [labeled]
permissions:
contents: read
jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'safe to test')
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.ACTION_TOKEN }}
submodules: true
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'corretto'
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test with Gradle
run: |
./gradlew copySecret
./gradlew --info test
- name: Upload Test Report
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
name: junit-test-results
path: '**/build/test-results/test/TEST-*.xml'
retention-days: 1
---
name: report
on:
workflow_run:
workflows: [ 'PR CI' ]
types: [ completed ]
permissions:
checks: write
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Download Test Report
uses: dawidd6/action-download-artifact@v2
with:
name: junit-test-results
workflow: ${{ github.event.workflow.id }}
run_id: ${{ github.event.workflow_run.id }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: success() || failure()
with:
commit: ${{github.event.workflow_run.head_sha}}
report_paths: '**/build/test-results/test/TEST-*.xml'