From d67cc4d09a49a3ec4dcd574f26befbc3faf262fb Mon Sep 17 00:00:00 2001 From: khagen <33468547+koenhagen@users.noreply.github.com> Date: Thu, 5 Oct 2023 21:35:20 +0200 Subject: [PATCH] Update data_tests.yml --- .github/workflows/data_tests.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/data_tests.yml b/.github/workflows/data_tests.yml index 17cb45f5..502f9432 100644 --- a/.github/workflows/data_tests.yml +++ b/.github/workflows/data_tests.yml @@ -7,10 +7,22 @@ on: jobs: measure-energy: runs-on: ubuntu-latest - name: Run power usage check + name: A job to measure energy steps: - - run: sar -u 1 240 -o test.txt - - run: cat test.txt + - name: Hello world action step + id: hello + uses: koenhagen/measure-energy-action@v1.0 + with: + what-to-test: sleep 60 + # Use the output from the `hello` step + - name: Get the output time + run: echo "The time was ${{ steps.hello.outputs.time }}" + # measure-energy: + # runs-on: ubuntu-latest + # name: Run power usage check + # steps: + # - run: sar -u 1 240 -o test.txt + # - run: cat test.txt test: runs-on: ubuntu-latest strategy: