2025-12-01 13:14:30 +00:00
|
|
|
name: Daily Tests with Energy Measurement
|
|
|
|
|
run-name: Scheduled - DEV Branch
|
2025-12-01 13:15:54 +00:00
|
|
|
on: workflow_dispatch
|
2025-12-01 13:14:30 +00:00
|
|
|
permissions:
|
|
|
|
|
read-all
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
run-tests:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: clone
|
|
|
|
|
run: git clone https://edp.buildth.ing/DevFW-CICD/fibonacci_pipeline.git fibo
|
|
|
|
|
|
|
|
|
|
- name: Start Measurement
|
2025-12-01 13:18:49 +00:00
|
|
|
uses: https://github.com/green-coding-solutions/eco-ci-energy-estimation@v5 # use hash or @vX here (See note below)
|
2025-12-01 13:14:30 +00:00
|
|
|
with:
|
|
|
|
|
task: start-measurement
|
|
|
|
|
# continue-on-error: true # recommended setting for production. See notes below.
|
|
|
|
|
|
|
|
|
|
- name: sleep
|
|
|
|
|
shell: bash
|
|
|
|
|
run: |
|
|
|
|
|
sleep 10
|
|
|
|
|
|
|
|
|
|
- name: Tests measurement
|
2025-12-01 13:18:49 +00:00
|
|
|
uses: https://github.com/green-coding-solutions/eco-ci-energy-estimation@v5 # use hash or @vX here (See note below)
|
2025-12-01 13:14:30 +00:00
|
|
|
with:
|
|
|
|
|
task: get-measurement
|
|
|
|
|
label: 'sleep'
|
|
|
|
|
# continue-on-error: true # recommended setting for production. See notes below.
|
|
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
|
shell: bash
|
|
|
|
|
run: |
|
|
|
|
|
cd fibo && go build .
|
|
|
|
|
|
|
|
|
|
- name: Tests measurement
|
2025-12-01 13:18:49 +00:00
|
|
|
uses: https://github.com/green-coding-solutions/eco-ci-energy-estimation@v5 # use hash or @vX here (See note below)
|
2025-12-01 13:14:30 +00:00
|
|
|
with:
|
|
|
|
|
task: get-measurement
|
|
|
|
|
label: 'build'
|
|
|
|
|
# continue-on-error: true # recommended setting for production. See notes below.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Show Energy Results
|
2025-12-01 13:19:30 +00:00
|
|
|
uses: https://github.com/green-coding-solutions/eco-ci-energy-estimation@v5 # use hash or @vX here (See note below)
|
2025-12-01 13:14:30 +00:00
|
|
|
with:
|
|
|
|
|
task: display-results
|
|
|
|
|
# continue-on-error: true # recommended setting for production. See notes below.
|