Add .forgejo/workflows/measure-power-test.yaml
This commit is contained in:
commit
55de5856c5
1 changed files with 52 additions and 0 deletions
52
.forgejo/workflows/measure-power-test.yaml
Normal file
52
.forgejo/workflows/measure-power-test.yaml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
name: Daily Tests with Energy Measurement
|
||||
run-name: Scheduled - DEV Branch
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
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
|
||||
uses: green-coding-solutions/eco-ci-energy-estimation@v5 # use hash or @vX here (See note below)
|
||||
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
|
||||
uses: green-coding-solutions/eco-ci-energy-estimation@v5 # use hash or @vX here (See note below)
|
||||
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
|
||||
uses: green-coding-solutions/eco-ci-energy-estimation@v5 # use hash or @vX here (See note below)
|
||||
with:
|
||||
task: get-measurement
|
||||
label: 'build'
|
||||
# continue-on-error: true # recommended setting for production. See notes below.
|
||||
|
||||
|
||||
- name: Show Energy Results
|
||||
uses: green-coding-solutions/eco-ci-energy-estimation@v5 # use hash or @vX here (See note below)
|
||||
with:
|
||||
task: display-results
|
||||
# continue-on-error: true # recommended setting for production. See notes below.
|
||||
Loading…
Add table
Add a link
Reference in a new issue