From d4ef1b305d5d0c5626468ed6054351f590b56ed8 Mon Sep 17 00:00:00 2001 From: Christophe Hurpeau <302891+christophehurpeau@users.noreply.github.com> Date: Thu, 15 Aug 2024 17:29:36 +0200 Subject: [PATCH] ci: fail if token is missing --- .github/workflows/push.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index efc3e2a..5a06122 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -37,7 +37,12 @@ jobs: if: startsWith(matrix.node-version, '20.') - name: Generate Test Coverage - run: yarn run test:coverage:json + run: | + if [ -z "$CODECOV_TOKEN" ]; then + echo "Missing env variable CODECOV_TOKEN" + exit 1 + fi + yarn run test:coverage:json if: startsWith(matrix.node-version, '20.') env: CI: true