-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: migrate test to eslint-vitest-rule-tester
- Loading branch information
1 parent
87bea37
commit bc88005
Showing
132 changed files
with
10,574 additions
and
10,409 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,12 @@ jobs: | |
- "20" | ||
- "latest" | ||
ts_version: | ||
- "next" | ||
# - "next" | ||
- "latest" | ||
- "4.7.4" | ||
# - "4.7.4" | ||
# - "JS" | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.ts_version == 'next' }} | ||
env: | ||
REPORT_COVERAGE: ${{ fromJSON('["false", "true"]')[matrix.node_version == 'latest' && matrix.os == 'ubuntu-latest'] }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/prepare | ||
|
@@ -48,12 +46,16 @@ jobs: | |
if: matrix.ts_version != 'JS' | ||
run: pnpm add -D typescript@"${{ matrix.ts_version }}" | ||
|
||
# - name: Run Tests | ||
# if: matrix.ts_version != 'latest' | ||
# run: pnpm test-compiled # TODO: Figure out how to get proper coverage of this. | ||
|
||
- name: Run Tests | ||
run: pnpm test-compiled | ||
if: matrix.ts_version == 'latest' | ||
run: pnpm test-uncompiled | ||
|
||
- name: Report coverage | ||
uses: codecov/[email protected] | ||
if: env.REPORT_COVERAGE == 'true' | ||
if: matrix.ts_version == 'latest' && matrix.node_version == 'latest' | ||
with: | ||
file: coverage/lcov.info | ||
flags: ${{ matrix.ts_version }} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.