Skip to content

A fast, helpful, and open-source document parser

ci: add testing job

Clelia (Astra) Bertelli5d702a11f5bf
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 992e386..95496d4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -35,3 +35,26 @@ jobs:
- name: Build
run: npm run build
+
+ test:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [18, 20, 22]
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Setup Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v4
+ with:
+ node-version: ${{ matrix.node-version }}
+ cache: "npm"
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Check formatting
+ run: npm run test