Skip to content

Commit 0986a1e

Browse files
committed
test: try testing with Bun too
1 parent 5b537d8 commit 0986a1e

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/test.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,51 @@ jobs:
4848
uses: actions/upload-artifact@v4
4949
if: failure()
5050
with:
51-
name: failed-test-on-${{ matrix.os }}-with-${{ matrix.node-version }}
51+
name: failed-test-on-${{ matrix.os }}-with-node-${{ matrix.node-version }}
52+
path: |
53+
test*.zip
54+
test*.crx
55+
test*.xml
56+
57+
bun:
58+
strategy:
59+
matrix:
60+
bun-version: [1.2.x]
61+
62+
runs-on: ubuntu-latest
63+
64+
steps:
65+
- name: Workaround Windows mess and set git to keep original line endings
66+
run: git config --global core.autocrlf false
67+
68+
- uses: actions/checkout@v4
69+
70+
- uses: actions/cache@v4
71+
with:
72+
path: ~/.bun/install/cache
73+
key: ${{ runner.os }}-${{ matrix.bun-version }}-bun-${{ hashFiles('**/bun.lockb') }}
74+
restore-keys: |
75+
${{ runner.os }}-${{ matrix.bun-version }}-bun-
76+
77+
- name: Use latest Bun
78+
uses: oven-sh/setup-bun@v2
79+
with:
80+
bun-version: ${{ matrix.bun-version }}
81+
82+
- run: bun --version
83+
- run: bun install
84+
- run: bun run build --if-present
85+
86+
- name: Run tests
87+
run: bun run test
88+
env:
89+
FILE_CHECK_DELAY: 1500
90+
91+
- name: Upload artifacts in case of failure
92+
uses: actions/upload-artifact@v4
93+
if: failure()
94+
with:
95+
name: failed-test-on-${{ matrix.os }}-with-bun-${{ matrix.bun-version }}
5296
path: |
5397
test*.zip
5498
test*.crx

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Changelog
1010
- Dropped use of runners on AppVeyor (Windows) and Cirrus CI (Linux & MacOS) in favor of GitHub Actions
1111
- Added puppeteer.containerfile and modified info about testing
1212
- `keypair()` now returns `null` when key path was specified, but file could not be created, e.g., in read-only directory
13+
- Tests now pass also when run with Bun (tested with Bun v1.2.18)
1314

1415
**v1.1.3** - 2020-11-06
1516

0 commit comments

Comments
 (0)