Skip to content

Commit 61d2e20

Browse files
authored
Adds energy consumption measurement
1 parent 6f3a2c1 commit 61d2e20

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/nodejs.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,22 @@ on:
1212

1313
jobs:
1414
build:
15-
1615
runs-on: ubuntu-latest
17-
1816
strategy:
1917
matrix:
2018
node-version: [16.x]
21-
2219
steps:
23-
- uses: actions/checkout@v2
20+
- name: Initialize Energy Estimation
21+
uses: green-coding-berlin/eco-ci-energy-estimation@v1
22+
with:
23+
task: start-measurement
24+
- name: "Checkout repository"
25+
uses: actions/checkout@v3
26+
- name: Checkout Repo Measurement
27+
uses: green-coding-berlin/eco-ci-energy-estimation@v1
28+
with:
29+
task: get-measurement
30+
label: 'repo checkout'
2431
- name: Use Node.js ${{ matrix.node-version }}
2532
uses: actions/setup-node@v3
2633
with:
@@ -29,3 +36,12 @@ jobs:
2936
run: npm ci
3037
- name: Npm build
3138
run: npm run build --if-present
39+
- name: Checkout Repo Measurement
40+
uses: green-coding-berlin/eco-ci-energy-estimation@v1
41+
with:
42+
task: get-measurement
43+
label: 'Npm activities'
44+
- name: Show Energy Results
45+
uses: green-coding-berlin/eco-ci-energy-estimation@v1
46+
with:
47+
task: display-results

0 commit comments

Comments
 (0)