Skip to content

Commit

Permalink
add fix pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mongolyy committed Jan 17, 2024
1 parent da2646b commit 18bd161
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 60 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,6 @@ on:
- main
pull_request:
jobs:
test-check:
name: runner / Biome (github-check)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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/
# 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: ./
with:
github_token: ${{ secrets.github_token }}
workdir: ./testdata
reporter: github-check
level: warning
filter_mode: nofilter
fail_on_error: true
biome_flags: error/

test-pr-check:
if: github.event_name == 'pull_request'
name: runner / Biome (github-pr-check)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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/
# 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/

test-pr-review:
if: github.event_name == 'pull_request'
name: runner / Biome (github-pr-review)
Expand Down
2 changes: 1 addition & 1 deletion testdata/ok/format.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const a = [2, 2, 1, 3];
const a = [2, 2, 1, 3];
2 changes: 1 addition & 1 deletion testdata/ok/lint.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[foo, bar] = baz;
[foo, bar ] = baz;

0 comments on commit 18bd161

Please sign in to comment.