Skip to content

Commit 3b0ee85

Browse files
committed
Integrated Eco-CI
1 parent e6a02c6 commit 3b0ee85

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/examples-application-testing-vm.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ jobs:
2222
recent_gmt_commit: ${{ steps.check_gmt_commits.outputs.should_run }}
2323
recent_examples_commit: ${{ steps.check_examples_commits.outputs.should_run }}
2424
steps:
25+
- name: Initialize Energy Estimation
26+
uses: green-coding-solutions/eco-ci-energy-estimation@main
27+
with:
28+
task: start-measurement
29+
project: "Green Metrics Tool"
30+
machine: "ubuntu-latest"
31+
tags: "CI/CD,Example-Tests-Check-Commits"
32+
gmt-api-token: ${{ secrets.GMT_API_TOKEN }}
33+
electricitymaps-api-token: ${{ secrets.ELECTRICITYMAPS_TOKEN }}
34+
2535
- id: check_gmt_commits
2636
uses: green-coding-solutions/green-ci-activity-checker@main
2737
with:
@@ -35,6 +45,16 @@ jobs:
3545
branch: 'main'
3646
workflow-id: 45266619
3747

48+
- name: Energy Estimation - Get Measurement
49+
uses: green-coding-solutions/eco-ci-energy-estimation@main
50+
with:
51+
task: get-measurement
52+
53+
- name: Energy Estimation - End Measurement
54+
uses: green-coding-solutions/eco-ci-energy-estimation@main
55+
with:
56+
task: display-results
57+
3858
run-tests:
3959
needs: check-commits
4060
if: ${{ needs.check-commits.outputs.recent_examples_commit == 'true' || needs.check-commits.outputs.recent_gmt_commit == 'true' || github.event_name == 'workflow_dispatch'}}
@@ -45,6 +65,11 @@ jobs:
4565
uses: green-coding-solutions/eco-ci-energy-estimation@main
4666
with:
4767
task: start-measurement
68+
project: "Green Metrics Tool"
69+
machine: "ubuntu-latest"
70+
tags: "CI/CD,Example-Tests-Main"
71+
gmt-api-token: ${{ secrets.GMT_API_TOKEN }}
72+
electricitymaps-api-token: ${{ secrets.ELECTRICITYMAPS_TOKEN }}
4873

4974
- name: Checkout Examples Directory
5075
uses: actions/checkout@v4

0 commit comments

Comments
 (0)