diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index d9b63eead..4d78f60d6 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -24,7 +24,7 @@ jobs: with: node-version: lts/* - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c name: ๐ŸŸง Install pnpm with: cache: true @@ -41,4 +41,4 @@ jobs: - name: ๐Ÿ”  Fix lint errors run: pnpm lint:fix - - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 + - uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # 635ffb0c9798bd160680f18fd73371e355b85f27 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f88f1ef4..2468c4cc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: with: node-version: lts/* - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c name: ๐ŸŸง Install pnpm # pnpm cache skipped deliberately as the project is not actually installed here @@ -49,7 +49,7 @@ jobs: with: node-version: lts/* - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c name: ๐ŸŸง Install pnpm with: cache: true @@ -71,7 +71,7 @@ jobs: with: node-version: lts/* - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c name: ๐ŸŸง Install pnpm with: cache: true @@ -80,7 +80,13 @@ jobs: run: pnpm install - name: ๐Ÿงช Unit tests - run: pnpm test:unit --project unit run --coverage + run: pnpm test:unit run --coverage --reporter=junit --outputFile=test-report.junit.xml + + - name: โฌ†๏ธŽ Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} test: name: ๐Ÿงช Component tests @@ -93,7 +99,7 @@ jobs: with: node-version: lts/* - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c name: ๐ŸŸง Install pnpm with: cache: true @@ -105,12 +111,18 @@ jobs: run: pnpm playwright install chromium-headless-shell - name: ๐Ÿงช Component tests - run: pnpm vite test --project nuxt run --coverage + run: pnpm test:nuxt run --coverage --reporter=junit --outputFile=test-report.junit.xml + + - name: โฌ†๏ธŽ Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} - - name: Upload coverage reports to Codecov + - name: โฌ†๏ธŽ Upload coverage reports to Codecov uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5 env: - CODECOV_TOKEN: 17b4bed9-d407-4ce2-9c10-2ccd4328a1d9 + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} browser: name: ๐Ÿ–ฅ๏ธ Browser tests @@ -125,7 +137,7 @@ jobs: with: node-version: lts/* - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c name: ๐ŸŸง Install pnpm with: cache: true @@ -153,7 +165,7 @@ jobs: with: node-version: lts/* - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c name: ๐ŸŸง Install pnpm with: cache: true @@ -181,7 +193,7 @@ jobs: with: node-version: lts/* - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c name: ๐ŸŸง Install pnpm with: cache: true diff --git a/.github/workflows/lunaria.yml b/.github/workflows/lunaria.yml index 44b695e10..5a920f435 100644 --- a/.github/workflows/lunaria.yml +++ b/.github/workflows/lunaria.yml @@ -32,7 +32,7 @@ jobs: with: node-version: lts/* - - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c + - uses: pnpm/action-setup@1e1c8eafbd745f64b1ef30a7d7ed7965034c486c # 1e1c8eafbd745f64b1ef30a7d7ed7965034c486c name: ๐ŸŸง Install pnpm with: cache: true @@ -41,4 +41,4 @@ jobs: run: pnpm install - name: Generate Lunaria Overview - uses: lunariajs/action@v1-prerelease + uses: lunariajs/action@4911ad0736d1e3b20af4cb70f5079aea2327ed8e # v1-prerelease diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..75f04d965 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,13 @@ +coverage: + status: + project: + default: + informational: true + patch: + default: + informational: true + +comment: + layout: 'reach,diff,flags,tree,components,tests,build' + behavior: default + require_changes: false