-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1.05 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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}}