From f691eb1e11b10ce2c2d8b696847dbaf1e1bc839a Mon Sep 17 00:00:00 2001 From: Sven Friedrich Date: Mon, 4 Nov 2024 14:30:57 +0100 Subject: [PATCH] wip: verify output --- .github/workflows/rust.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 72d0ba7..7a8249c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,4 +43,9 @@ jobs: - name: Check CGroup run: systemd-run --user --scope cat /proc/self/cgroup - name: Run example ${{ matrix.example }} - run: nix develop --command systemd-run-example-${{ matrix.example }} --duration $DURATION + id: run_step + shell: nix develop --command bash -e {0} + run: echo "log=$( systemd-run-example-${{ matrix.example }} --duration $DURATION )" >> $GITHUB_OUTPUT + - name: Test output + run: | + echo ${{ steps.run_step.outputs.log }} | grep INFO