Skip to content

Commit

Permalink
ビルド結果を出力するように設定
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuna-can-se committed Nov 13, 2023
1 parent 34adbe5 commit f0c4610
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/back-sample-pull-request-ut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,26 @@ jobs:

- id: run-build-and-tests
name: ビルド(コンパイル, 静的テスト, JUnit)実行
run: ./gradlew build
run: ./gradlew build > build-result.txt
working-directory: ./samples/web-csr/dressca-backend
continue-on-error: true

- name: ビルドログのアップロード
uses: actions/upload-artifact@v3
with:
name: build-result
path: ./samples/web-csr/dressca-backend/build-result.txt
retention-days: 7

- name: ビルド(コンパイル, 静的テスト, JUnit)結果の表示
shell: bash
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: |
Expand Down

0 comments on commit f0c4610

Please sign in to comment.