From b9ea05e858478e27aacfc9c0156a45078e771276 Mon Sep 17 00:00:00 2001 From: Siwan Yang <123605713+siwany@users.noreply.github.com> Date: Thu, 23 May 2024 14:01:08 -0400 Subject: [PATCH] Update test.yml (#105) * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml remove systemproto --------- Co-authored-by: Gilbert Kwan --- .github/workflows/test.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5b7d767..c1795d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,8 +22,8 @@ jobs: shell: bash run: bash ./tools/pr-checker/checker.sh ${{ github.repository }} ${{ github.event.pull_request.number }} | tee checker.log - id: Lint-Code-Base - if: always() - uses: github/super-linter@v3.17.0 + if: "! github.event.pull_request.head.repo.fork" + uses: github/super-linter@latest env: VALIDATE_ALL_CODEBASE: false GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -33,10 +33,10 @@ jobs: VALIDATE_JAVA: true VALIDATE_YAML: true - name: Summary - if: always() + if: "! github.event.pull_request.head.repo.fork" run: | - cat ./checker.log | tail -n +2; echo "====== Super Linter ======" - cat ./super-linter.log | sed -n '/.*The script has completed.*/,$p' | tail -n +4 | sed 's/.*\(\[[A-Z]\+\]\)/\1/' + < ./checker.log tail -n +2; echo "====== Super Linter ======" + < ./super-linter.log sed -n '/.*The script has completed.*/,$p' | tail -n +4 | sed 's/.*\(\[[A-Z]\+\]\)/\1/' echo "====== Examine logs in Checker and Super-Linter steps for more details ======" if [ '${{ steps.Checker.outcome }}' != 'success' ] || [ '${{ steps.Lint-Code-Base.outcome }}' != 'success' ]; then exit 1; fi test-app: @@ -58,8 +58,10 @@ jobs: - name: Post tests if: always() run: | - logsPath=$(find . -name "console.log"); - cat $logsPath | grep Launching + logsPath=$(find . -name "console.log" | grep query); + < "$logsPath" grep Launching + logsPath=$(find . -name "console.log" | grep system); + < "$logsPath" grep Launching - name: Archive server logs if failed if: failure() uses: actions/upload-artifact@v2