Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test commit suggestion #18

Closed
Closed
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mongolyy
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];
3 changes: 2 additions & 1 deletion testdata/ok/lint.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
[foo, bar] = baz;
[foo, bar ] = baz;
console.log(`a a, ++b,`);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Biome] reported by reviewdog 🐶

Suggested change
[foo, bar ] = baz;
[foo, bar] = baz;

Loading