diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 900a2f796..cd79cfaf8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,4 +33,7 @@ jobs: - name: i18n_extract run: npm run i18n_extract - name: Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab1ca91a7..4cdde341c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,10 @@ jobs: - name: i18n_extract run: npm run i18n_extract - name: Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false - name: Build run: npm run build - name: Release diff --git a/package.json b/package.json index fd4a35767..4d98168ca 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "snapshot": "fedx-scripts jest --updateSnapshot", "start": "fedx-scripts webpack-dev-server --progress", "start:with-theme": "paragon install-theme && npm start && npm install", - "test": "fedx-scripts jest" + "test": "fedx-scripts jest --coverage" }, "files": [ "/dist"