Skip to content

Commit 3e56e5a

Browse files
committed
Fix coverage workflow and start using Codecov
1 parent ddcc139 commit 3e56e5a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/run-coverage.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,25 @@ jobs:
99

1010
runs-on: ubuntu-latest
1111

12-
strategy:
13-
matrix:
14-
node-version: [16.x, 18.x]
15-
1612
steps:
1713
- name: Checkout repository
1814
uses: actions/checkout@v3
19-
with:
20-
fetch-depth: 2
2115

2216
- name: Use Node.js ${{ matrix.node-version }}
2317
uses: actions/setup-node@v3
2418
with:
25-
node-version: ${{ matrix.node-version }}
19+
node-version: 18.x
20+
21+
- name: Start Redis ${{ matrix.redis-version }}
22+
uses: supercharge/redis-github-action@1.4.0
23+
with:
24+
redis-version: 6
2625

2726
- name: Install dependencies
2827
run: npm install
2928

3029
- name: Run the tests
3130
run: npm test -- --coverage
31+
32+
- name: Upload coverage to Codecov
33+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)