Skip to content

Commit

Permalink
Add workflow steps to test executable
Browse files Browse the repository at this point in the history
  • Loading branch information
jacg committed Jan 8, 2024
1 parent 7a6626e commit b17a54e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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#
Expand Down
7 changes: 7 additions & 0 deletions templates/basic/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./#
Expand Down

0 comments on commit b17a54e

Please sign in to comment.