From 92b6594929796f17a94cfabaa43b93450c727f3f Mon Sep 17 00:00:00 2001 From: Siwan Yang <123605713+siwany@users.noreply.github.com> Date: Tue, 28 May 2024 13:47:23 -0400 Subject: [PATCH] Update test.yml (#228) * update the superlinter to latest Signed-off-by: Siwan Yang * remove file Signed-off-by: Siwan Yang --------- Signed-off-by: Siwan Yang Co-authored-by: Gilbert Kwan --- .github/workflows/add-pr-to-project.yml | 18 ------------------ .github/workflows/test.yml | 12 ++++++------ 2 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/add-pr-to-project.yml diff --git a/.github/workflows/add-pr-to-project.yml b/.github/workflows/add-pr-to-project.yml deleted file mode 100644 index 0b1643a7..00000000 --- a/.github/workflows/add-pr-to-project.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Add PRs to Dependabot PRs dashboard - -on: - pull_request: - types: - - opened - - labeled - -jobs: - add-to-project: - name: Add PR to dashboard - runs-on: ubuntu-latest - steps: - - uses: actions/add-to-project@v0.5.0 - with: - project-url: https://github.com/orgs/OpenLiberty/projects/26 - github-token: ${{ secrets.ADMIN_BACKLOG }} - labeled: dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fd07de47..86de6647 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,18 +22,18 @@ 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 }} LINTER_RULES_PATH: ./tools/pr-checker/linters/ DEFAULT_BRANCH: prod - 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: @@ -59,7 +59,7 @@ jobs: if: always() run: | logsPath=$(sudo find . -name "console.log"); - sudo cat $logsPath | sudo grep Launching + sudo cat "$logsPath" | sudo grep Launching - name: Archive server logs if failed if: failure()