From 95944c852ef945c47e10ce9cae0f49a8ad0ad9b6 Mon Sep 17 00:00:00 2001 From: Aurelien Benel Date: Tue, 30 Jul 2024 19:36:11 +0200 Subject: [PATCH] PROCESS: Carbon footprint profiling should be run on push. --- .github/workflows/tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9557b03..c3af499 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,6 +19,7 @@ jobs: run: | docker compose --file docker-compose.test.yml pull docker pull benel/cucumber-capybara + curl https://assets.greenframe.io/install.sh | bash - name: Install and launch backend with test data run: | export COUCHDB_USER="TO_BE_CHANGED" @@ -48,3 +49,10 @@ jobs: run: docker run --rm -v "$(pwd)":/app --tty --net="host" --env APP_HOST="http://`hostname`" benel/cucumber-capybara --retry 2 --fail-fast --no-source --no-snippets shell: 'script -q -e -c "bash {0}"' + - name: Measure carbon footprint + run: | + cd requirements + greenframe analyze + env: + GREENFRAME_SECRET_TOKEN: ${{secrets.GREENFRAME_SECRET_TOKEN}} +