From ec3e196771f229a9e8bc0c3015e5017cccac22c4 Mon Sep 17 00:00:00 2001 From: "Adolfo R. Brandes" Date: Thu, 13 Jun 2024 19:39:27 -0300 Subject: [PATCH] build: Update codecov and use token Update codecov to the latest version and start using the org-wide token for uploads. See https://github.com/openedx/wg-frontend/issues/179 --- .github/workflows/ci.yml | 5 ++++- .github/workflows/release.yml | 5 ++++- package.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 900a2f7967..cd79cfaf8a 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 ab1ca91a72..4cdde341c1 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 268d80a66c..721fd7738b 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"