From b17a54ebc41d974ee1cfd25019599adec948aa75 Mon Sep 17 00:00:00 2001 From: Jacek Generowicz Date: Mon, 8 Jan 2024 17:17:50 +0100 Subject: [PATCH] Add workflow steps to test executable --- .github/workflows/bootstrap.yml | 8 ++++++++ templates/basic/.github/workflows/test.yml | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/bootstrap.yml b/.github/workflows/bootstrap.yml index e7ac89ed..b3f83a7f 100644 --- a/.github/workflows/bootstrap.yml +++ b/.github/workflows/bootstrap.yml @@ -69,6 +69,14 @@ jobs: echo Looking for "'$PATTERN'" in output of 'just' grep "$PATTERN" run-client-app-output + - name: Test run dev environment + run: | + cd ~/work/my-project + nix develop .# -c just run --beam-on 12 | tee build-and-run-in-devenv-output + PATTERN="end of event 12" + echo Looking for "'$PATTERN'" in output of 'just' + grep "$PATTERN" build-and-run-in-devenv-output + - name: Test nix build client package run: | nix build ~/work/my-project# diff --git a/templates/basic/.github/workflows/test.yml b/templates/basic/.github/workflows/test.yml index f3d9452f..fe56516b 100644 --- a/templates/basic/.github/workflows/test.yml +++ b/templates/basic/.github/workflows/test.yml @@ -62,6 +62,13 @@ jobs: - name: Run test suite run: nix develop .#${{ matrix.devshell }} -c just test + - name: Test run in dev environment + run: | + nix develop .# -c just run --beam-on 12 | tee build-and-run-in-devenv-output + PATTERN="end of event 12" + echo Looking for "'$PATTERN'" in output of 'just' + grep "$PATTERN" build-and-run-in-devenv-output + - name: Test nix build default package run: | nix build ./#