diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..bdfd39b --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @mongolyy diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef51c4c..bc220f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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) diff --git a/testdata/ok/format.js b/testdata/ok/format.js index 6017da0..b2beebf 100644 --- a/testdata/ok/format.js +++ b/testdata/ok/format.js @@ -1 +1 @@ -const a = [2, 2, 1, 3]; +const a = [2, 2, 1, 3]; diff --git a/testdata/ok/lint.js b/testdata/ok/lint.js index 7177f63..4968ded 100644 --- a/testdata/ok/lint.js +++ b/testdata/ok/lint.js @@ -1 +1,2 @@ -[foo, bar] = baz; +[foo, bar ] = baz; +console.log(`a a, ++b,`);