Skip to content

gradle-system-common: bump org.springframework.boot from 3.1.2 to 3.2.0 in /samples/web-csr/dressca-backend/system-common #255

gradle-system-common: bump org.springframework.boot from 3.1.2 to 3.2.0 in /samples/web-csr/dressca-backend/system-common

gradle-system-common: bump org.springframework.boot from 3.1.2 to 3.2.0 in /samples/web-csr/dressca-backend/system-common #255

---
# cSpell:ignore mikepenz dorny
name: バックエンドサンプルAPに対するプルリクエスト時の単体テスト実行
on: # yamllint disable-line rule:truthy
push:
branches: [main]
paths:
- 'samples/web-csr/dressca-backend/**'
- '.github/workflows/back-sample-pull-request-ut.yml'
pull_request:
branches: [main]
paths:
- 'samples/web-csr/dressca-backend/**'
- '.github/workflows/back-sample-pull-request-ut.yml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
steps:
- name: ブランチのチェックアウト
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: JDK17のセットアップ
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
cache: 'gradle'
- name: gradlewに実行権限付与
run: chmod +x samples/web-csr/dressca-backend/gradlew
- id: run-build-and-tests
name: ビルド(コンパイル, 静的テスト, JUnit)実行
run: ./gradlew build > build-result.txt
working-directory: ./samples/web-csr/dressca-backend
continue-on-error: true
- name: ビルド(コンパイル, 静的テスト, JUnit)結果の表示
shell: bash
working-directory: ./samples/web-csr/dressca-backend
if: ${{ success() || (failure() && steps.run-build-and-tests.outcome == 'failure') }}
run: |
echo '# Build Result :gear:' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat build-result.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
- name: ビルド(コンパイル, 静的テスト, JUnit)成功
if: ${{ steps.run-build-and-tests.outcome == 'success' }}
run: |
echo '## Test Result :memo:' >> $GITHUB_STEP_SUMMARY
echo ':heavy_check_mark: ビルドとテストに成功しました。' >> $GITHUB_STEP_SUMMARY
- name: ビルド(コンパイル, 静的テスト, JUnit)失敗
if: ${{ steps.run-build-and-tests.outcome == 'failure' }}
run: |
echo '## Test Result :memo:' >> $GITHUB_STEP_SUMMARY
echo ':x: ビルドまたはテストに失敗しました。' >> $GITHUB_STEP_SUMMARY
- name: JUnitレポート
uses: mikepenz/action-junit-report@v3
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
- name: Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Maven Tests
path: '**/build/test-results/test/TEST-*.xml'
reporter: java-junit
fail-on-error: true