Skip to content

feat: Added greenframe scenarios for prototype 1. #2

feat: Added greenframe scenarios for prototype 1.

feat: Added greenframe scenarios for prototype 1. #2

Workflow file for this run

name: Footprint
on:
push:
jobs:
evaluate:
runs-on: ubuntu-latest
steps:
- name: Download sources
uses: actions/checkout@v4
with:

Check failure on line 11 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / Footprint

Invalid workflow file

The workflow is not valid. .github/workflows/test.yaml (Line: 11, Col: 14): Unexpected value '' .github/workflows/test.yaml (Line: 12, Col: 9): Unexpected value 'fetch-depth'
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: |
docker compose up --detach
- name: Wait for frontend
uses: docker://benel/wait-for-response:1
with:
args: http://localhost/ 200 30000 500
- name: Watch frontend initial payload
run: curl --silent localhost
- name: Measure carbon footprint
uses: marmelab/[email protected]
env:
GREENFRAME_SECRET_TOKEN: ${{secrets.GREENFRAME_SECRET_TOKEN}}