File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed
Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,16 @@ jobs:
1717 - " ubuntu-latest"
1818 - " macos-latest"
1919 - " windows-latest"
20- node_version :
21- - " 22"
22- - " 20"
23- - " 18"
20+ runtime :
21+ - ["Node.js", "24"]
22+ - ["Node.js", "22"]
23+ - ["Node.js", "20"]
24+ - ["Node.js", "18"]
25+ - ["Bun", "latest"]
2426 # exclude:
2527 # - os: "macos-latest"
2628 # node_version: "12"
27- name : Node.js ${{ matrix.node_version }} on ${{ matrix.os }}
29+ name : ${{matrix.runtime[0]}} ${{ matrix.runtime[1] }} on ${{ matrix.os }}
2830 runs-on : ${{ matrix.os }}
2931 env :
3032 YARN_ENABLE_IMMUTABLE_INSTALLS : false
@@ -34,15 +36,27 @@ jobs:
3436
3537 - name : Setup Node.js
3638 uses : actions/setup-node@v4
39+ if : ${{matrix.runtime[0] == 'Node.js'}}
3740 with :
38- node-version : ${{ matrix.node_version }}
41+ node-version : ${{ matrix.runtime[1] }}
42+
43+ - name : Setup Bun
44+ uses : oven-sh/setup-bun@v2
45+ if : ${{matrix.runtime[0] == 'Bun'}}
46+ with :
47+ bun-version : ${{ matrix.runtime[1] }}
3948
4049 - name : Install Dependencies
4150 run : yarn
4251
43- - name : Run Test
52+ - name : Run Test (${{matrix.runtime[0]}})
53+ if : ${{matrix.runtime[0] == 'Node.js'}}
4454 run : yarn test-coverage
4555
56+ - name : Run Test
57+ if : ${{matrix.runtime[0] == 'Bun'}}
58+ run : c8 bun test
59+
4660 - uses : codecov/codecov-action@v5
4761 with :
4862 fail_ci_if_error : true
You can’t perform that action at this time.
0 commit comments