From 35729a6d62914fc00c61e249dbc5625a6d830cb5 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Tue, 3 Dec 2024 18:22:44 +0000 Subject: [PATCH] ci: update codecov to use token (#370) --- .github/workflows/validation.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index b604323..0c4ba25 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -11,15 +11,13 @@ jobs: node-version: [18, 20, 22] steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node ${{ matrix.node-version }} - uses: actions/setup-node@master + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - - name: Get yarn cache - uses: c-hive/gha-yarn-cache@v2 + cache: 'yarn' - name: Install Dependencies using Yarn run: yarn --ignore-engines @@ -28,6 +26,8 @@ jobs: run: yarn test:ci - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: fail_ci_if_error: true