+
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,61 +10,58 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: action-success-test
name: 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
# github-check test is judged to fail if an error occurs even if continue-on-error is set to true.
# Therefore, the test for failure should also succeed by setting the report level to warning.
- name: action-failure-test
uses: ./
continue-on-error: true
with:
github_token: ${{ secrets.github_token }}
workdir: ./testdata
reporter: github-check
level: warning
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
- 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
# github-pr-check test is judged to fail if an error occurs even if continue-on-error is set to true.
# Therefore, the test for failure should also succeed by setting the report level to warning.
- name: action-failure-test
uses: ./
continue-on-error: true
with:
github_token: ${{ secrets.github_token }}
workdir: ./testdata
reporter: github-pr-check
level: warning
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'
Expand All @@ -79,6 +76,7 @@ jobs:
github_token: ${{ secrets.github_token }}
workdir: ./testdata
reporter: github-pr-review
level: error
filter_mode: nofilter
fail_on_error: true
biome_flags: ok/
Expand All @@ -90,6 +88,7 @@ jobs:
github_token: ${{ secrets.github_token }}
workdir: ./testdata
reporter: github-pr-review
level: error
filter_mode: nofilter
fail_on_error: true
biome_flags: error/
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载