From 8a2eb944f080d72feffd2121c8a774048b4a697c Mon Sep 17 00:00:00 2001 From: Justin Zhang Date: Mon, 2 Oct 2023 22:37:20 -0400 Subject: [PATCH] Update snapshots --- .../test/__snapshots__/custom.test.ts.snap | 28 +++++--- .../__snapshots__/django-project.test.ts.snap | 28 +++++--- .../test/__snapshots__/django.test.ts.snap | 70 +++++++++++++------ .../labs-application.test.ts.snap | 24 ++++--- 4 files changed, 106 insertions(+), 44 deletions(-) diff --git a/cdk/kraken/test/__snapshots__/custom.test.ts.snap b/cdk/kraken/test/__snapshots__/custom.test.ts.snap index 06ad22a7..5ba74cb9 100644 --- a/cdk/kraken/test/__snapshots__/custom.test.ts.snap +++ b/cdk/kraken/test/__snapshots__/custom.test.ts.snap @@ -105,13 +105,19 @@ pipenv run black --check .", "name": "Test (run in parallel)", "run": "cd backendOne pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=projectOne.settings.ci --parallel -pipenv run coverage combine", +pipenv run coverage combine +pipenv run coverage xml", }, Object { "name": "Upload Code Coverage", - "run": "ROOT=$(pwd) -cd backendOne -pipenv run codecov --root $ROOT --flags backend", + "uses": "codecov/codecov-action@v3", + "with": Object { + "directory": "./backend/", + "fail_ci_if_error": true, + "files": "coverage.xml", + "name": "codecov-umbrella", + "verbose": true, + }, }, ], }, @@ -167,13 +173,19 @@ pipenv run black --check .", "name": "Test (run in parallel)", "run": "cd backendTwo pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=projectTwo.settings.ci --parallel -pipenv run coverage combine", +pipenv run coverage combine +pipenv run coverage xml", }, Object { "name": "Upload Code Coverage", - "run": "ROOT=$(pwd) -cd backendTwo -pipenv run codecov --root $ROOT --flags backend", + "uses": "codecov/codecov-action@v3", + "with": Object { + "directory": "./backend/", + "fail_ci_if_error": true, + "files": "coverage.xml", + "name": "codecov-umbrella", + "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 6224b853..5f192d8e 100644 --- a/cdk/kraken/test/__snapshots__/django-project.test.ts.snap +++ b/cdk/kraken/test/__snapshots__/django-project.test.ts.snap @@ -55,13 +55,19 @@ pipenv run black --check .", "name": "Test (run in parallel)", "run": "cd . pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=example.settings.ci --parallel -pipenv run coverage combine", +pipenv run coverage combine +pipenv run coverage xml", }, Object { "name": "Upload Code Coverage", - "run": "ROOT=$(pwd) -cd . -pipenv run codecov --root $ROOT --flags backend", + "uses": "codecov/codecov-action@v3", + "with": Object { + "directory": "./backend/", + "fail_ci_if_error": true, + "files": "coverage.xml", + "name": "codecov-umbrella", + "verbose": true, + }, }, ], }, @@ -169,13 +175,19 @@ pipenv run black --check .", "name": "Test (run in parallel)", "run": "cd . pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=example.settings.ci --parallel -pipenv run coverage combine", +pipenv run coverage combine +pipenv run coverage xml", }, Object { "name": "Upload Code Coverage", - "run": "ROOT=$(pwd) -cd . -pipenv run codecov --root $ROOT --flags backend", + "uses": "codecov/codecov-action@v3", + "with": Object { + "directory": "./backend/", + "fail_ci_if_error": true, + "files": "coverage.xml", + "name": "codecov-umbrella", + "verbose": true, + }, }, ], }, diff --git a/cdk/kraken/test/__snapshots__/django.test.ts.snap b/cdk/kraken/test/__snapshots__/django.test.ts.snap index dfa1b73e..43779631 100644 --- a/cdk/kraken/test/__snapshots__/django.test.ts.snap +++ b/cdk/kraken/test/__snapshots__/django.test.ts.snap @@ -53,13 +53,19 @@ pipenv run black --check .", "name": "Test (run in parallel)", "run": "cd . pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=example.settings.ci --parallel -pipenv run coverage combine", +pipenv run coverage combine +pipenv run coverage xml", }, Object { "name": "Upload Code Coverage", - "run": "ROOT=$(pwd) -cd . -pipenv run codecov --root $ROOT --flags backend", + "uses": "codecov/codecov-action@v3", + "with": Object { + "directory": "./backend/", + "fail_ci_if_error": true, + "files": "coverage.xml", + "name": "codecov-umbrella", + "verbose": true, + }, }, ], } @@ -118,13 +124,19 @@ pipenv run black --check .", "name": "Test (run in parallel)", "run": "cd backend pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=example.settings.ci --parallel -pipenv run coverage combine", +pipenv run coverage combine +pipenv run coverage xml", }, Object { "name": "Upload Code Coverage", - "run": "ROOT=$(pwd) -cd backend -pipenv run codecov --root $ROOT --flags backend", + "uses": "codecov/codecov-action@v3", + "with": Object { + "directory": "./backend/", + "fail_ci_if_error": true, + "files": "coverage.xml", + "name": "codecov-umbrella", + "verbose": true, + }, }, ], } @@ -183,13 +195,19 @@ pipenv run black --check .", "name": "Test (run in parallel)", "run": "cd . pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=example.settings.ci --parallel -pipenv run coverage combine", +pipenv run coverage combine +pipenv run coverage xml", }, Object { "name": "Upload Code Coverage", - "run": "ROOT=$(pwd) -cd . -pipenv run codecov --root $ROOT --flags backend", + "uses": "codecov/codecov-action@v3", + "with": Object { + "directory": "./backend/", + "fail_ci_if_error": true, + "files": "coverage.xml", + "name": "codecov-umbrella", + "verbose": true, + }, }, ], } @@ -238,13 +256,19 @@ pipenv install --deploy --dev", "name": "Test (run in parallel)", "run": "cd . pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=example.settings.ci --parallel -pipenv run coverage combine", +pipenv run coverage combine +pipenv run coverage xml", }, Object { "name": "Upload Code Coverage", - "run": "ROOT=$(pwd) -cd . -pipenv run codecov --root $ROOT --flags backend", + "uses": "codecov/codecov-action@v3", + "with": Object { + "directory": "./backend/", + "fail_ci_if_error": true, + "files": "coverage.xml", + "name": "codecov-umbrella", + "verbose": true, + }, }, ], } @@ -304,13 +328,19 @@ pipenv run black --check .", "name": "Test (run in parallel)", "run": "cd . pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=example.settings.ci --parallel -pipenv run coverage combine", +pipenv run coverage combine +pipenv run coverage xml", }, Object { "name": "Upload Code Coverage", - "run": "ROOT=$(pwd) -cd . -pipenv run codecov --root $ROOT --flags backend", + "uses": "codecov/codecov-action@v3", + "with": Object { + "directory": "./backend/", + "fail_ci_if_error": true, + "files": "coverage.xml", + "name": "codecov-umbrella", + "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 64c197a1..a003a98b 100644 --- a/cdk/kraken/test/__snapshots__/labs-application.test.ts.snap +++ b/cdk/kraken/test/__snapshots__/labs-application.test.ts.snap @@ -34,11 +34,15 @@ jobs: cd backend pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=example.settings.ci --parallel pipenv run coverage combine + pipenv run coverage xml - name: Upload Code Coverage - run: |- - ROOT=$(pwd) - cd backend - pipenv run codecov --root $ROOT --flags backend + uses: codecov/codecov-action@v3 + with: + directory: ./backend/ + fail_ci_if_error: true + files: coverage.xml + name: codecov-umbrella + verbose: true container: image: python:3.8-buster env: @@ -208,11 +212,15 @@ jobs: cd backend pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=example.settings.ci --parallel pipenv run coverage combine + pipenv run coverage xml - name: Upload Code Coverage - run: |- - ROOT=$(pwd) - cd backend - pipenv run codecov --root $ROOT --flags backend + uses: codecov/codecov-action@v3 + with: + directory: ./backend/ + fail_ci_if_error: true + files: coverage.xml + name: codecov-umbrella + verbose: true container: image: python:3.8-buster env: