Skip to content

Commit

Permalink
Update test.yml (#270)
Browse files Browse the repository at this point in the history
* update the superlinter to latest

Signed-off-by: Siwan Yang <[email protected]>

* remove file

Signed-off-by: Siwan Yang <[email protected]>

---------

Signed-off-by: Siwan Yang <[email protected]>
Co-authored-by: Gilbert Kwan <[email protected]>
  • Loading branch information
siwany and gkwan-ibm authored May 28, 2024
1 parent c054fb7 commit 8466329
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/add-pr-to-project.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8466329

Please sign in to comment.