[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: emit test data to codecov + prevent failing status check (#928)

authored by

Daniel Roe and committed by
GitHub
93bd2918 62cff37b

+40 -15
+2 -2
.github/workflows/autofix.yml
··· 24 24 with: 25 25 node-version: lts/* 26 26 27 - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 27 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 28 28 name: 🟧 Install pnpm 29 29 with: 30 30 cache: true ··· 41 41 - name: 🔠 Fix lint errors 42 42 run: pnpm lint:fix 43 43 44 - - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 44 + - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # 635ffb0c9798bd160680f18fd73371e355b85f27
+23 -11
.github/workflows/ci.yml
··· 31 31 with: 32 32 node-version: lts/* 33 33 34 - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 34 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 35 35 name: 🟧 Install pnpm 36 36 # pnpm cache skipped deliberately as the project is not actually installed here 37 37 ··· 49 49 with: 50 50 node-version: lts/* 51 51 52 - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 52 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 53 53 name: 🟧 Install pnpm 54 54 with: 55 55 cache: true ··· 71 71 with: 72 72 node-version: lts/* 73 73 74 - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 74 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 75 75 name: 🟧 Install pnpm 76 76 with: 77 77 cache: true ··· 80 80 run: pnpm install 81 81 82 82 - name: 🧪 Unit tests 83 - run: pnpm test:unit --project unit run --coverage 83 + run: pnpm test:unit run --coverage --reporter=junit --outputFile=test-report.junit.xml 84 + 85 + - name: ⬆︎ Upload test results to Codecov 86 + if: ${{ !cancelled() }} 87 + uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1 88 + with: 89 + token: ${{ secrets.CODECOV_TOKEN }} 84 90 85 91 test: 86 92 name: 🧪 Component tests ··· 93 99 with: 94 100 node-version: lts/* 95 101 96 - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 102 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 97 103 name: 🟧 Install pnpm 98 104 with: 99 105 cache: true ··· 105 111 run: pnpm playwright install chromium-headless-shell 106 112 107 113 - name: 🧪 Component tests 108 - run: pnpm vite test --project nuxt run --coverage 114 + run: pnpm test:nuxt run --coverage --reporter=junit --outputFile=test-report.junit.xml 109 115 110 - - name: Upload coverage reports to Codecov 116 + - name: ⬆︎ Upload test results to Codecov 117 + if: ${{ !cancelled() }} 118 + uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1 119 + with: 120 + token: ${{ secrets.CODECOV_TOKEN }} 121 + 122 + - name: ⬆︎ Upload coverage reports to Codecov 111 123 uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5 112 124 env: 113 - CODECOV_TOKEN: 17b4bed9-d407-4ce2-9c10-2ccd4328a1d9 125 + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 114 126 115 127 browser: 116 128 name: 🖥️ Browser tests ··· 125 137 with: 126 138 node-version: lts/* 127 139 128 - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 140 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 129 141 name: 🟧 Install pnpm 130 142 with: 131 143 cache: true ··· 153 165 with: 154 166 node-version: lts/* 155 167 156 - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 168 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 157 169 name: 🟧 Install pnpm 158 170 with: 159 171 cache: true ··· 181 193 with: 182 194 node-version: lts/* 183 195 184 - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 196 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 185 197 name: 🟧 Install pnpm 186 198 with: 187 199 cache: true
+2 -2
.github/workflows/lunaria.yml
··· 32 32 with: 33 33 node-version: lts/* 34 34 35 - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 35 + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c 36 36 name: 🟧 Install pnpm 37 37 with: 38 38 cache: true ··· 41 41 run: pnpm install 42 42 43 43 - name: Generate Lunaria Overview 44 - uses: lunariajs/action@v1-prerelease 44 + uses: lunariajs/action@4911ad0736d1e3b20af4cb70f5079aea2327ed8e # v1-prerelease
+13
codecov.yml
··· 1 + coverage: 2 + status: 3 + project: 4 + default: 5 + informational: true 6 + patch: 7 + default: 8 + informational: true 9 + 10 + comment: 11 + layout: 'reach,diff,flags,tree,components,tests,build' 12 + behavior: default 13 + require_changes: false