From 877f51f875d8a106c70d40e6b5847290a7ec3bd9 Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Tue, 14 May 2024 16:59:54 -0400 Subject: [PATCH] build: upgrade codecov from v3 to v3, use secret Per https://openedx.atlassian.net/wiki/spaces/COMM/pages/3438280709/Adding+Codecov --- .github/workflows/ci.yml | 5 ++++- .github/workflows/manual-publish.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51f11203e..c5269163c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,4 +39,7 @@ jobs: run: npm run docs - name: Run Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/manual-publish.yml b/.github/workflows/manual-publish.yml index af6c09bce..76fc109c2 100644 --- a/.github/workflows/manual-publish.yml +++ b/.github/workflows/manual-publish.yml @@ -27,7 +27,10 @@ jobs: - name: Test run: npm run test - name: Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} - name: Build run: npm run build # NPM expects to be authenticated for publishing. This step will fail CI if NPM is not authenticated