7777
7878 - name : ⬆︎ Upload test results to Codecov
7979 if : ${{ !cancelled() }}
80- uses : codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1
80+ uses : codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
81+ with :
82+ disable_search : true
83+ files : test-report.junit.xml
84+ flags : unit
85+ report_type : test_results
86+ env :
87+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
88+
89+ - name : ⬆︎ Upload coverage reports to Codecov
90+ if : ${{ !cancelled() }}
91+ uses : codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
8192 with :
82- token : ${{ secrets.CODECOV_TOKEN }}
93+ disable_search : true
94+ files : coverage/clover.xml
95+ flags : unit
96+ env :
97+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
8398
8499 test :
85100 name : 🧪 Component tests
@@ -101,15 +116,24 @@ jobs:
101116 - name : 🧪 Component tests
102117 run : vp test --project nuxt --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
103118
104- - name : ⬆︎ Upload coverage reports to Codecov
119+ - name : ⬆︎ Upload test results to Codecov
120+ if : ${{ !cancelled() }}
105121 uses : codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
106122 with :
123+ disable_search : true
124+ files : test-report.junit.xml
125+ flags : component
107126 report_type : test_results
108127 env :
109128 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
110129
111130 - name : ⬆︎ Upload coverage reports to Codecov
131+ if : ${{ !cancelled() }}
112132 uses : codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
133+ with :
134+ disable_search : true
135+ files : coverage/clover.xml
136+ flags : component
113137 env :
114138 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
115139
@@ -140,6 +164,18 @@ jobs:
140164 - name : 🖥️ Test project (browser)
141165 run : vp run test:browser:prebuilt
142166
167+ - name : ⬆︎ Upload test results to Codecov
168+ if : ${{ !cancelled() }}
169+ uses : codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
170+ with :
171+ disable_search : true
172+ files : test-report.junit.xml
173+ flags : browser
174+ report_type : test_results
175+ env :
176+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
177+ # TODO(serhalp): Upload browser *coverage* report once we've instrumented the prebuilt bundle
178+
143179 a11y :
144180 name : ♿ Accessibility audit
145181 runs-on : ubuntu-latest # See https://github.com/GoogleChrome/lighthouse/discussions/16834
0 commit comments