Skip to content

Commit

Permalink
Merge pull request #137 from contributor-assistant/adds-energy-consum…
Browse files Browse the repository at this point in the history
…ption-measurement

Adds energy consumption measurement
  • Loading branch information
ibakshay authored Jun 13, 2023
2 parents 6f3a2c1 + fb644d8 commit f2ab9ee
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,22 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- name: Initialize Energy Estimation
uses: green-coding-berlin/eco-ci-energy-estimation@v1
with:
task: start-measurement
- name: "Checkout repository"
uses: actions/checkout@v3
- name: Checkout Repo Measurement
uses: green-coding-berlin/eco-ci-energy-estimation@v1
with:
task: get-measurement
label: 'repository checkout'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -29,3 +36,12 @@ jobs:
run: npm ci
- name: Npm build
run: npm run build --if-present
- name: Checkout Repo Measurement
uses: green-coding-berlin/eco-ci-energy-estimation@v1
with:
task: get-measurement
label: 'Npm activities'
- name: Show Energy Results
uses: green-coding-berlin/eco-ci-energy-estimation@v1
with:
task: display-results

0 comments on commit f2ab9ee

Please sign in to comment.