39
39
node-version : ['16', '18', '20']
40
40
env :
41
41
cache-name : cache-node-modules
42
+ NYC_REPORT_DIR : coverage_unit_node${{ matrix.node-version }}
42
43
43
44
steps :
44
45
- uses : actions/setup-node@v4
@@ -58,12 +59,12 @@ jobs:
58
59
run : |
59
60
npm ci
60
61
npm run test
61
- - run : tar -cvf coverage_unit. tar coverage_unit
62
+ - run : tar -cvf ${{ env.NYC_REPORT_DIR }}. tar ${{ env.NYC_REPORT_DIR }}
62
63
- name : Store coverage report
63
64
uses : actions/upload-artifact@v3
64
65
with :
65
- name : coverage_unit
66
- path : coverage_unit .tar
66
+ name : ${{ env.NYC_REPORT_DIR }}
67
+ path : ${{ env.NYC_REPORT_DIR }} .tar
67
68
retention-days : 1
68
69
69
70
e2e-test :
75
76
E2E_ACCESS_TOKEN : ${{ secrets.DATABRICKS_TOKEN }}
76
77
E2E_TABLE_SUFFIX : ${{github.sha}}
77
78
cache-name : cache-node-modules
79
+ NYC_REPORT_DIR : coverage_e2e
78
80
79
81
steps :
80
82
- uses : actions/checkout@v3
@@ -91,12 +93,12 @@ jobs:
91
93
run : |
92
94
npm ci
93
95
NODE_OPTIONS="--max-old-space-size=4096" npm run e2e
94
- - run : tar -cvf coverage_e2e. tar coverage_e2e
96
+ - run : tar -cvf ${{ env.NYC_REPORT_DIR }}. tar ${{ env.NYC_REPORT_DIR }}
95
97
- name : Store coverage report
96
98
uses : actions/upload-artifact@v3
97
99
with :
98
- name : coverage_e2e
99
- path : coverage_e2e .tar
100
+ name : ${{ env.NYC_REPORT_DIR }}
101
+ path : ${{ env.NYC_REPORT_DIR }} .tar
100
102
retention-days : 1
101
103
102
104
coverage :
@@ -118,15 +120,14 @@ jobs:
118
120
${{ runner.os }}-
119
121
- uses : actions/download-artifact@v3
120
122
with :
121
- name : coverage_unit
122
- - uses : actions/download-artifact@v3
123
- with :
124
- name : coverage_e2e
125
- - run : tar -xvf coverage_unit.tar && rm coverage_unit.tar
126
- - run : tar -xvf coverage_e2e.tar && rm coverage_e2e.tar
127
- - name : Coverage
128
- uses : codecov/codecov-action@v3
129
- with :
130
- token : ${{ secrets.CODECOV_TOKEN }}
131
- fail_ci_if_error : true
132
- verbose : true
123
+ pattern : coverage_*
124
+ merge-multiple : true
125
+ - run : ls -la coverage_e2e
126
+ # - run: tar -xvf coverage_unit.tar && rm coverage_unit.tar
127
+ # - run: tar -xvf coverage_e2e.tar && rm coverage_e2e.tar
128
+ # - name: Coverage
129
+ # uses: codecov/codecov-action@v3
130
+ # with:
131
+ # token: ${{ secrets.CODECOV_TOKEN }}
132
+ # fail_ci_if_error: true
133
+ # verbose: true
0 commit comments