Skip to content

Commit 92e86d4

Browse files
authored
Merge pull request #416 from Moadong/chore/change-codecov-location
[chore] codecov.yml 폴더 변경
2 parents 5dc598c + 1e759b3 commit 92e86d4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/codecov.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run tests and upload coverage
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop-fe
7+
8+
jobs:
9+
test:
10+
name: Run tests and collect coverage
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 22.12.0
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run tests
27+
run: npx jest --coverage
28+
29+
- name: Upload results to Codecov
30+
uses: codecov/codecov-action@v5
31+
with:
32+
files: ./coverage/lcov.info
33+
flags: unittests
34+
name: codecov-coverage
35+
fail_ci_if_error: true

0 commit comments

Comments
 (0)