Skip to content

Commit

Permalink
build: output to both es module and commJS, PDFParser to be named exp…
Browse files Browse the repository at this point in the history
…ort (#338)

* build: output to both es module and commJS, also make PDFParser to be named export

* build: remove out of fate rollup scirpt after rewrite

* build: simplif rollup, add more tests

* build: replace travis with github action, lint readme

* build: fix the ci.yml

* build: use node 20 for github action run

* build: log process.exit code from jest test

* build: refactor check-test job for ci.yml

* build: simplify ci.yml
  • Loading branch information
modesty authored Apr 29, 2024
1 parent 08a407f commit 24f7fce
Show file tree
Hide file tree
Showing 22 changed files with 9,620 additions and 6,755 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node.js CI/CD

on:
pull_request:
branches: [ "*" ]

jobs:
build:
runs-on: ubuntu-latest
outputs:
test-result: ${{ steps.test.outcome }}

steps:
- uses: actions/checkout@v3

- name: Use Node.js 20.x # Updated for Node 20
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: Run ci
run: npm ci

- name: Run tests
id: test
run: npm test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ node_modules/
target/
.idea
.npmrc
package-lock.json
vscode/
dist/
lib/pdfjs-code.js
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
.idea
node_modules/
target/

.gitignore
test
.vscode/

3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 24f7fce

Please sign in to comment.