Skip to content

Commit 7512914

Browse files
authored
maint: dep verions bump (#400)
* maint: dep verions bump * maint: bump bl version * maint: use built-in sourcemap from rollup, remove plugin * maint: remove rollup-plugin-node-builtins to utilize rollup@v4 * maint: update github actions workflow with npm cache * maint: update github action workflow with deno and bun setup * maint: update rollup cmd line with local node_modules path * maint: update github action workflow to have two sequential steps: build and test * maint: update actions/upload-artifact from v3 to v4 in CI workflow * maint: simplify github action workflow * ci: replace npm ci with clean install to resolve dependency conflicts * chore: pin deno and bun versions to 2.4.3 and 1.2.19 respectively * ci: switch from npm ci to clean install with node_modules removal * ci: add npm cache restore step to improve build performance * chore: remove pretest build script from pdf2json package.json * ci: consolidate build and test jobs into single workflow with Deno and Bun setup
1 parent 6039e2a commit 7512914

4 files changed

Lines changed: 1442 additions & 2834 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,39 @@ name: Node.js CI/CD
33
on:
44
pull_request:
55
branches: [ "*" ]
6+
workflow_dispatch: # Allow manual triggering
67

78
jobs:
8-
build:
9+
setup:
10+
name: Build and Test
911
runs-on: ubuntu-latest
10-
outputs:
11-
test-result: ${{ steps.test.outcome }}
12-
1312
steps:
14-
- uses: actions/checkout@v3
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
1515

16-
- name: Use Node.js 20.x # Updated for Node 20
16+
- name: Setup Deno 2.4.3
17+
uses: denoland/setup-deno@v1
18+
with:
19+
deno-version: 2.4.3
20+
21+
- name: Setup Bun 1.2.19
22+
uses: oven-sh/setup-bun@v1
23+
with:
24+
bun-version: 1.2.19
25+
26+
- name: Setup Node.js 20.18.0
1727
uses: actions/setup-node@v3
1828
with:
19-
node-version: 20.x
29+
node-version: 20.18.0
30+
31+
- name: Clean install dependencies
32+
run: rm -rf node_modules package-lock.json && npm i
33+
34+
# - name: Install dependencies
35+
# run: npm ci
2036

21-
- name: Run ci
22-
run: npm ci
37+
- name: Build project
38+
run: npm run build
2339

2440
- name: Run tests
25-
id: test
26-
run: npm test
41+
run: npm run test

0 commit comments

Comments
 (0)