Skip to content

Commit de9b17f

Browse files
committed
🐛 fix: gh action error
1 parent d840205 commit de9b17f

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,27 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v4
1616

17+
- name: Install pnpm
18+
uses: pnpm/action-setup@v2
19+
with:
20+
version: 9
21+
1722
- name: Setup Node.js
1823
uses: actions/setup-node@v4
1924
with:
2025
node-version: '18'
2126
cache: 'pnpm'
2227

23-
- name: Install pnpm
24-
uses: pnpm/action-setup@v2
25-
with:
26-
version: 8
27-
2828
- name: Install dependencies
29-
run: pnpm install --frozen-lockfile
29+
run: |
30+
pnpm install --frozen-lockfile || pnpm install --no-frozen-lockfile
3031
3132
- name: Run tests with coverage
3233
run: pnpm test:coverage
3334

3435
- name: Generate coverage badge
3536
run: node scripts/generate-coverage-badge.js
3637

37-
- name: Upload coverage to Codecov
38-
uses: codecov/codecov-action@v3
39-
with:
40-
file: ./coverage/lcov.info
41-
flags: unittests
42-
name: codecov-umbrella
43-
4438
- name: Coverage Badge
4539
uses: tj-actions/coverage-badge-js@v1
4640
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)