Skip to content

Commit

Permalink
add DefinitelyTyped
Browse files Browse the repository at this point in the history
closes #4
  • Loading branch information
Boshen committed May 17, 2024
1 parent 3d3bc93 commit 9d73df1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,22 @@ jobs:
- name: Run
working-directory: ${{ matrix.path }}
run: ${{ matrix.command }}

- name: Check Panic
working-directory: ${{ matrix.path }}
run: |
set +e # disable exit on run
# TODO: --jest-plugin
./oxlint --jsdoc-plugin --jsx-a11y-plugin --nextjs-plugin --react-perf-plugin -D all --quiet
EXIT_CODE=$?
# Panic returns exit code > 1, e.g. 101 when a Rust program panics
if [ $EXIT_CODE -gt 1 ]; then
echo "exitcode=$EXIT_CODE" >> $GITHUB_OUTPUT
exit $EXIT_CODE
fi
echo "exitcode=0" >> $GITHUB_OUTPUT
exit 0
6 changes: 6 additions & 0 deletions matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@
"ref": "main",
"path": "preact",
"command": "./oxlint --deny-warnings -c oxlint.json oxlint src test debug compat hooks test-utils"
},
{
"repository": "DefinitelyTyped/DefinitelyTyped",
"ref": "master",
"path": "DefinitelyTyped",
"command": "echo 'skipped'"
}
]

0 comments on commit 9d73df1

Please sign in to comment.