name: CI on: push: branches: [main] pull_request: workflow_dispatch: jobs: test-module: name: Test module runs-on: ubuntu-latest permissions: contents: read steps: - name: Checkout repository uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Install Nix uses: DeterminateSystems/nix-installer-action@de22e16c4711fca50c816cc9081563429d1cf563 # v10 - name: Run test script run: | function catch_error() { echo "Job $1 failed!" exit 1 } tests=( "overmind" "overmind-dft" "honcho" ) for test in "${tests[@]}"; do nix develop ./test#"$test" --command 'run-ci' || catch_error "$test" sleep 5 # this is to avoid race conditions with the current proc runner not exiting just yet done