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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - name: Install Nix uses: DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d # v16 - 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