File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -28,36 +28,20 @@ jobs:
2828 steps :
2929 - name : Checkout repository
3030 uses : actions/checkout@v4
31- with :
32- fetch-depth : 1
33-
34- - name : Set up NodeJS ${{ matrix.node-version }}
35- uses : actions/setup-node@v4
36- with :
37- node-version : ${{ matrix.node-version }}
38-
39- - name : Get npm cache directory path
40- id : npm-cache-dir-path
41- run : echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
4231
43- - name : Cache dependencies
44- uses : actions/cache@v4
45- id : npm-cache
32+ - uses : oven-sh/setup-bun@v1
4633 with :
47- path : ${{ steps.npm-cache-dir-path.outputs.dir }}
48- key : ${{ runner.os }}-node-${{ matrix.node-version }}-npm-${{ hashFiles('**/package-lock.json') }}
49- restore-keys : |
50- ${{ runner.os }}-node-${{ matrix.node-version }}-npm-
34+ bun-version : latest
5135
5236 - name : Install dependencies
53- run : npm install
37+ run : bun install
5438
5539 - name : Run the tests with coverage
56- run : npm run test -- --coverage --coverageReporters json
40+ run : bun run test -- --coverage --coverageReporters json
5741
5842 - name : Upload coverage to Codecov
5943 uses : codecov/codecov-action@v4
60- if : ${{ success() && env.USE_CODECOV_SERVICE == 'yes' }}
44+ if : ${{ success() && env.USE_CODECOV_SERVICE == 'yes' && github.ref_name == 'main' }}
6145 with :
6246 token : ${{ secrets.CODECOV_TOKEN }}
6347 files : coverage/coverage-final.json
You can’t perform that action at this time.
0 commit comments