From b58ee7af09070a399de6609ce16d7b5519224051 Mon Sep 17 00:00:00 2001 From: Justin Zhang Date: Tue, 3 Oct 2023 01:47:15 -0400 Subject: [PATCH] Add codecov token --- cdk/kraken/.projenrc.js | 2 +- cdk/kraken/CHANGELOG.md | 4 ++++ cdk/kraken/package.json | 2 +- cdk/kraken/src/django.ts | 1 + cdk/kraken/test/__snapshots__/custom.test.ts.snap | 2 ++ cdk/kraken/test/__snapshots__/django-project.test.ts.snap | 2 ++ cdk/kraken/test/__snapshots__/django.test.ts.snap | 5 +++++ cdk/kraken/test/__snapshots__/labs-application.test.ts.snap | 2 ++ cdk/kraken/version.json | 2 +- 9 files changed, 19 insertions(+), 3 deletions(-) diff --git a/cdk/kraken/.projenrc.js b/cdk/kraken/.projenrc.js index 7f4b59ec..01b0492b 100644 --- a/cdk/kraken/.projenrc.js +++ b/cdk/kraken/.projenrc.js @@ -12,7 +12,7 @@ const project = new TypeScriptProject({ ...common.options, }); -project.addFields({['version']: '0.8.11'}); +project.addFields({['version']: '0.8.12'}); project.prettier?.ignoreFile?.addPatterns('src/imports'); project.testTask.steps.forEach(step => { if (step.exec) { diff --git a/cdk/kraken/CHANGELOG.md b/cdk/kraken/CHANGELOG.md index 7eb3df9d..86f29ff3 100644 --- a/cdk/kraken/CHANGELOG.md +++ b/cdk/kraken/CHANGELOG.md @@ -2,6 +2,10 @@ ## X.Y.Z (UNRELEASED) +## 0.8.12 (2023-10-03) + +- Update DjangoCheckJob to have codecov token + ## 0.8.11 (2023-10-02) - Update DjangoCheckJob to account for codecov deprecation diff --git a/cdk/kraken/package.json b/cdk/kraken/package.json index 208770a6..1f361611 100644 --- a/cdk/kraken/package.json +++ b/cdk/kraken/package.json @@ -63,7 +63,7 @@ "main": "lib/index.js", "license": "MIT", "homepage": "https://kraken.pennlabs.org", - "version": "0.8.11", + "version": "0.8.12", "jest": { "testMatch": [ "/src/**/__tests__/**/*.ts?(x)", diff --git a/cdk/kraken/src/django.ts b/cdk/kraken/src/django.ts index ccd62ea7..b4b5bee0 100644 --- a/cdk/kraken/src/django.ts +++ b/cdk/kraken/src/django.ts @@ -112,6 +112,7 @@ export class DjangoCheckJob extends CheckoutJob { name: "Upload Code Coverage", uses: "codecov/codecov-action@v3", with: { + token: "${{ secrets.CODECOV_TOKEN }}", directory: "./backend/", fail_ci_if_error: true, files: "coverage.xml", diff --git a/cdk/kraken/test/__snapshots__/custom.test.ts.snap b/cdk/kraken/test/__snapshots__/custom.test.ts.snap index 5ba74cb9..8b6c5470 100644 --- a/cdk/kraken/test/__snapshots__/custom.test.ts.snap +++ b/cdk/kraken/test/__snapshots__/custom.test.ts.snap @@ -116,6 +116,7 @@ pipenv run coverage xml", "fail_ci_if_error": true, "files": "coverage.xml", "name": "codecov-umbrella", + "token": "\${{ secrets.CODECOV_TOKEN }}", "verbose": true, }, }, @@ -184,6 +185,7 @@ pipenv run coverage xml", "fail_ci_if_error": true, "files": "coverage.xml", "name": "codecov-umbrella", + "token": "\${{ secrets.CODECOV_TOKEN }}", "verbose": true, }, }, diff --git a/cdk/kraken/test/__snapshots__/django-project.test.ts.snap b/cdk/kraken/test/__snapshots__/django-project.test.ts.snap index 5f192d8e..ddec9355 100644 --- a/cdk/kraken/test/__snapshots__/django-project.test.ts.snap +++ b/cdk/kraken/test/__snapshots__/django-project.test.ts.snap @@ -66,6 +66,7 @@ pipenv run coverage xml", "fail_ci_if_error": true, "files": "coverage.xml", "name": "codecov-umbrella", + "token": "\${{ secrets.CODECOV_TOKEN }}", "verbose": true, }, }, @@ -186,6 +187,7 @@ pipenv run coverage xml", "fail_ci_if_error": true, "files": "coverage.xml", "name": "codecov-umbrella", + "token": "\${{ secrets.CODECOV_TOKEN }}", "verbose": true, }, }, diff --git a/cdk/kraken/test/__snapshots__/django.test.ts.snap b/cdk/kraken/test/__snapshots__/django.test.ts.snap index 43779631..b127127c 100644 --- a/cdk/kraken/test/__snapshots__/django.test.ts.snap +++ b/cdk/kraken/test/__snapshots__/django.test.ts.snap @@ -64,6 +64,7 @@ pipenv run coverage xml", "fail_ci_if_error": true, "files": "coverage.xml", "name": "codecov-umbrella", + "token": "\${{ secrets.CODECOV_TOKEN }}", "verbose": true, }, }, @@ -135,6 +136,7 @@ pipenv run coverage xml", "fail_ci_if_error": true, "files": "coverage.xml", "name": "codecov-umbrella", + "token": "\${{ secrets.CODECOV_TOKEN }}", "verbose": true, }, }, @@ -206,6 +208,7 @@ pipenv run coverage xml", "fail_ci_if_error": true, "files": "coverage.xml", "name": "codecov-umbrella", + "token": "\${{ secrets.CODECOV_TOKEN }}", "verbose": true, }, }, @@ -267,6 +270,7 @@ pipenv run coverage xml", "fail_ci_if_error": true, "files": "coverage.xml", "name": "codecov-umbrella", + "token": "\${{ secrets.CODECOV_TOKEN }}", "verbose": true, }, }, @@ -339,6 +343,7 @@ pipenv run coverage xml", "fail_ci_if_error": true, "files": "coverage.xml", "name": "codecov-umbrella", + "token": "\${{ secrets.CODECOV_TOKEN }}", "verbose": true, }, }, diff --git a/cdk/kraken/test/__snapshots__/labs-application.test.ts.snap b/cdk/kraken/test/__snapshots__/labs-application.test.ts.snap index a003a98b..7e20d190 100644 --- a/cdk/kraken/test/__snapshots__/labs-application.test.ts.snap +++ b/cdk/kraken/test/__snapshots__/labs-application.test.ts.snap @@ -38,6 +38,7 @@ jobs: - name: Upload Code Coverage uses: codecov/codecov-action@v3 with: + token: \${{ secrets.CODECOV_TOKEN }} directory: ./backend/ fail_ci_if_error: true files: coverage.xml @@ -216,6 +217,7 @@ jobs: - name: Upload Code Coverage uses: codecov/codecov-action@v3 with: + token: \${{ secrets.CODECOV_TOKEN }} directory: ./backend/ fail_ci_if_error: true files: coverage.xml diff --git a/cdk/kraken/version.json b/cdk/kraken/version.json index cb8cbf74..b6274d7f 100644 --- a/cdk/kraken/version.json +++ b/cdk/kraken/version.json @@ -1,3 +1,3 @@ { - "version": "0.8.11" + "version": "0.8.12" }