Skip to content

Merge pull request #18 from UTT-GL03/main #46

Merge pull request #18 from UTT-GL03/main

Merge pull request #18 from UTT-GL03/main #46

Workflow file for this run

name: Footprint
on:
push:
jobs:
evaluate:
runs-on: ubuntu-latest
steps:
- name: Download sources
uses: actions/checkout@v4
with:
fetch-depth: 0 # Greenframe needs the whole history
- name: Set up NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Install frontend dependencies
run: |
cd frontend
npm install
- name: Build frontend
run: |
cd frontend
npm run build
- name: Start frontend
run: |
export COUCHDB_USER="admin"
export COUCHDB_PASSWORD="admin"
docker compose up --detach
- name: Wait for frontend
uses: docker://benel/wait-for-response:1
with:
args: http://localhost/ 200 30000 500
- name: Measure carbon footprint
uses: marmelab/[email protected]
env:
GREENFRAME_SECRET_TOKEN: ${{secrets.GREENFRAME_SECRET_TOKEN}}