File tree Expand file tree Collapse file tree 3 files changed +34
-15
lines changed Expand file tree Collapse file tree 3 files changed +34
-15
lines changed Original file line number Diff line number Diff line change 55permissions :
66 contents : read
77jobs :
8- test :
9- name : Node.js ${{ matrix.node-version }}
8+ test-node :
9+ name : Node.js ( ${{ matrix.node-version }})
1010 runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
1313 node-version :
1414 - " 16"
15- - " * "
15+ - " latest "
1616 steps :
17- - uses : actions/checkout@v2
18- - uses : actions/setup-node@v1
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-node@v4
1919 with :
2020 node-version : ${{ matrix.node-version }}
21- - uses : actions/cache @v2
21+ - uses : oven-sh/setup-bun @v2
2222 with :
23- path : ~/.npm
24- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25- restore-keys : |
26- ${{ runner.os }}-node-
27- - run : npm ci
28- - run : npm test
29- - uses : codecov/codecov-action@v1
23+ bun-version : " 1.2.0"
24+ - run : bun install
25+ - run : bun run test # runs tests with Vitest
26+ - uses : codecov/codecov-action@v5
3027 with :
31- name : Node.js ${{ matrix.node-version }}
28+ name : Node.js (${{ matrix.node-version }})
29+ test-bun :
30+ name : Bun (${{ matrix.bun-version }})
31+ runs-on : ubuntu-latest
32+ strategy :
33+ matrix :
34+ bun-version :
35+ - " 1.2.0"
36+ - " latest"
37+ steps :
38+ - uses : actions/checkout@v4
39+ - uses : oven-sh/setup-bun@v2
40+ with :
41+ bun-version : ${{ matrix.bun-version }}
42+ - run : bun install
43+ - run : bun run test:bun # runs tests with Bun
44+ - uses : codecov/codecov-action@v5
45+ with :
46+ name : Bun (${{ matrix.bun-version }})
Original file line number Diff line number Diff line change 1+ [test ]
2+ coverage = true
3+ coverageReporter = [" text" , " lcov" ]
Original file line number Diff line number Diff line change 2727 "prepare" : " ts-scripts install && npm run build" ,
2828 "size" : " size-limit" ,
2929 "specs" : " ts-scripts specs" ,
30- "test" : " ts-scripts test && npm run size"
30+ "test" : " ts-scripts test && npm run size" ,
31+ "test:bun" : " bun test && bun run size"
3132 },
3233 "devDependencies" : {
3334 "@borderless/ts-scripts" : " ^0.15.0" ,
You can’t perform that action at this time.
0 commit comments