Skip to content
Merged
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
23 changes: 17 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ on:

jobs:
setup:
name: Build and Test
runs-on: ubuntu-latest
name: Build and Test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -23,19 +30,23 @@ jobs:
with:
bun-version: 1.2.19

- name: Setup Node.js 20.18.0
- name: Setup Node.js 22.23.2
uses: actions/setup-node@v4
with:
node-version: 20.18.0
node-version: 22.23.2

- name: Clean install dependencies
run: rm -rf node_modules && npm i
run: npm ci

- name: Build project
run: npm run build

- name: Type check
run: npx --no-install tsc --noEmit

- name: Lint
run: npm run lint

- name: Run tests (with coverage)
run: npm run test
run: npm run test:coverage && npm run parse-r && npm run parse-fd && npm run test:deno && npm run test:bun

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ lib/pdfjs-code.js
src/**/*.js
/dist/
/bin/cli/
coverage/
18 changes: 13 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import js from "@eslint/js";
import tseslint from "@typescript-eslint/eslint-plugin";
import tsparser from "@typescript-eslint/parser";
import tseslint from "typescript-eslint";

export default [
{
ignores: [
".mosey/**",
"dist/**",
"bin/**",
"test/**",
Expand Down Expand Up @@ -108,7 +108,7 @@ export default [
{
files: ["**/*.ts"],
languageOptions: {
parser: tsparser,
parser: tseslint.parser,
parserOptions: {
ecmaVersion: 2022,
sourceType: "module"
Expand All @@ -132,11 +132,11 @@ export default [
}
},
plugins: {
"@typescript-eslint": tseslint
"@typescript-eslint": tseslint.plugin
},
rules: {
...js.configs.recommended.rules,
...tseslint.configs.recommended.rules,
...tseslint.plugin.configs.recommended.rules,
"@typescript-eslint/no-unused-expressions": [
"error",
{
Expand Down Expand Up @@ -192,6 +192,14 @@ export default [
selector: "enumMember",
format: ["camelCase", "PascalCase", "UPPER_CASE"]
},
{
selector: "typeMethod",
format: null,
filter: {
regex: "^pdfParser_",
match: true
}
},
{
selector: "typeLike",
format: ["PascalCase"]
Expand Down
15 changes: 0 additions & 15 deletions jest.config.json

This file was deleted.

Loading
Loading