Generate error annotations when not publishing a check #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: zulu | |
- run: cd tests && mvn clean test --batch-mode -Dmaven.test.failure.ignore=true | |
- name: Update existing check report | |
uses: starburstdata/action-testng-report@master | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
check_name: build | |
update_existing_check: true | |
report_paths: "**/testng-results.xml" | |
- name: Create new check report | |
uses: starburstdata/action-testng-report@master | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
check_name: new check name | |
report_paths: "**/testng-results.xml" | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm install | |
- run: npm run eslint | |
- run: npm run test |