From 7f9a1de057f857da5edc501257cf36ca3b80098c Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Thu, 17 Jul 2025 10:40:03 +0000 Subject: [PATCH 1/3] fix(jest): install jest-circus required in ubuntu+node20 --- .github/workflows/tester.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 36e4eca..80f4630 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -23,7 +23,16 @@ jobs: key: ${{ runner.os }}-npm-cache restore-keys: ${{ runner.os }}-npm-cache - name: Install Dependencies - run: npm install + run: npm install --include=optional --force + - name: Show deps structure + run: find /home/runner/work/hexo-yam/ -type d + - name: "Upload Artifact" + if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20' + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.os }}-${{ matrix.node-version }}-node_modules + path: ./node_modules/ + retention-days: 1 - name: Test run: npm run test env: From 4460f1093322309d844921fd07d5a40d66119aa6 Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Thu, 17 Jul 2025 11:44:11 +0000 Subject: [PATCH 2/3] ci: switch to bun --- .github/workflows/linter.yml | 2 +- .github/workflows/snyk.yml | 2 +- .github/workflows/tester.yml | 19 ++++++++++--------- package.json | 1 + 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index a45e23e..addc6c8 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install Bun - uses: oven-sh/setup-bun@v1 + uses: oven-sh/setup-bun@v2 - name: Cache NPM dependencies uses: actions/cache@v4 with: diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml index 515c6c7..0f45112 100644 --- a/.github/workflows/snyk.yml +++ b/.github/workflows/snyk.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install Bun - uses: oven-sh/setup-bun@v1 + uses: oven-sh/setup-bun@v2 - name: Install Dependencies run: bun install - name: Run Snyk to check for vulnerabilities diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 80f4630..3a2d040 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -12,6 +12,8 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 + - name: Install Bun + uses: oven-sh/setup-bun@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: @@ -23,18 +25,17 @@ jobs: key: ${{ runner.os }}-npm-cache restore-keys: ${{ runner.os }}-npm-cache - name: Install Dependencies - run: npm install --include=optional --force + run: | + bun install + bun install --dev jest-circus + - name: Install @unrs/resolver-binding + if: matrix.os == 'ubuntu-latest' + run: bun install --dev @unrs/resolver-binding-linux-x64-gnu - name: Show deps structure - run: find /home/runner/work/hexo-yam/ -type d - - name: "Upload Artifact" if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20' - uses: actions/upload-artifact@v4 - with: - name: ${{ matrix.os }}-${{ matrix.node-version }}-node_modules - path: ./node_modules/ - retention-days: 1 + run: find /home/runner/work/hexo-yam/ -type d - name: Test - run: npm run test + run: bun run test env: CI: true - name: Upload coverage report to Codecov diff --git a/package.json b/package.json index a483083..38ca449 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "terser": "^5.3.0", "@mongodb-js/zstd": "^2.0.1" }, + "trustedDependencies": ["@mongodb-js/zstd"], "devDependencies": { "hexo": "^7.1.0", "jest": "^30.0.4", From d32e929e88772bdf96c2c25c3f7efad25c3fcbe1 Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Thu, 17 Jul 2025 12:13:14 +0000 Subject: [PATCH 3/3] ci: switch to npm for tester workflow difficulty installing zstd using bun --- .github/workflows/tester.yml | 14 +++----------- package.json | 1 - 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 3a2d040..1a9da12 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -12,8 +12,6 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 - - name: Install Bun - uses: oven-sh/setup-bun@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: @@ -26,16 +24,10 @@ jobs: restore-keys: ${{ runner.os }}-npm-cache - name: Install Dependencies run: | - bun install - bun install --dev jest-circus - - name: Install @unrs/resolver-binding - if: matrix.os == 'ubuntu-latest' - run: bun install --dev @unrs/resolver-binding-linux-x64-gnu - - name: Show deps structure - if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20' - run: find /home/runner/work/hexo-yam/ -type d + npm install + npm install --save-dev jest-circus - name: Test - run: bun run test + run: npm run test env: CI: true - name: Upload coverage report to Codecov diff --git a/package.json b/package.json index 38ca449..a483083 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,6 @@ "terser": "^5.3.0", "@mongodb-js/zstd": "^2.0.1" }, - "trustedDependencies": ["@mongodb-js/zstd"], "devDependencies": { "hexo": "^7.1.0", "jest": "^30.0.4",