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