From 7b4bf79a262b534fefaa56305af6f275c9604a1f Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Tue, 3 Dec 2024 18:12:05 +0000 Subject: [PATCH 1/2] ci: update codecov to use token --- .github/workflows/validation.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index b604323..d19a8d1 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -28,6 +28,7 @@ jobs: run: yarn test:ci - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} From 8335c7b175d467fcc52db5539542d683534dbb11 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Tue, 3 Dec 2024 18:21:40 +0000 Subject: [PATCH 2/2] update --- .github/workflows/validation.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index d19a8d1..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 @@ -29,6 +27,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }}