improve script and test #34
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test-check: | |
name: runner / Biome (github-check) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- id: action-success-test | |
name: action-success-test | |
uses: ./ | |
with: | |
github_token: ${{ secrets.github_token }} | |
workdir: ./testdata | |
reporter: github-check | |
level: error | |
filter_mode: nofilter | |
fail_on_error: true | |
biome_flags: ok | |
- id: action-failure-test | |
name: action-failure-test | |
uses: ./ | |
continue-on-error: true | |
with: | |
github_token: ${{ secrets.github_token }} | |
workdir: ./testdata | |
reporter: github-check | |
level: info | |
filter_mode: nofilter | |
fail_on_error: true | |
biome_flags: error | |
- name: check-failure | |
if: steps.action-failure-test.outcome == 'success' | |
run: exit 1 | |
test-pr-check: | |
if: github.event_name == 'pull_request' | |
name: runner / Biome (github-pr-check) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- id: action-success-test | |
name: action-success-test | |
uses: ./ | |
with: | |
github_token: ${{ secrets.github_token }} | |
workdir: ./testdata | |
reporter: github-pr-check | |
level: error | |
filter_mode: nofilter | |
fail_on_error: true | |
biome_flags: ok | |
- id: action-failure-test | |
name: action-failure-test | |
uses: ./ | |
continue-on-error: true | |
with: | |
github_token: ${{ secrets.github_token }} | |
workdir: ./testdata | |
reporter: github-pr-check | |
level: info | |
filter_mode: nofilter | |
fail_on_error: true | |
biome_flags: error | |
- name: check-failure | |
if: steps.action-failure-test.outcome == 'success' | |
run: exit 1 | |
test-pr-review: | |
if: github.event_name == 'pull_request' | |
name: runner / Biome (github-pr-review) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- id: action-success-test | |
name: action-success-test | |
uses: ./ | |
with: | |
github_token: ${{ secrets.github_token }} | |
workdir: ./testdata | |
reporter: github-pr-review | |
level: error | |
filter_mode: nofilter | |
fail_on_error: true | |
biome_flags: ok | |
- id: action-failure-test | |
name: action-failure-test | |
uses: ./ | |
continue-on-error: true | |
with: | |
github_token: ${{ secrets.github_token }} | |
workdir: ./testdata | |
reporter: github-pr-review | |
level: info | |
filter_mode: nofilter | |
fail_on_error: true | |
biome_flags: error | |
- name: check-failure | |
if: steps.action-failure-test.outcome == 'success' | |
run: exit 1 |