name: Debug Tests on: push: branches: [main] jobs: debug: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Setup Nim uses: jiro4989/setup-nim-action@v1 with: nim-version: '2.2.10' - name: Install system dependencies run: sudo apt-get update -qq && sudo apt-get install -y -qq libssl-dev libpcre3-dev openssl ca-certificates - name: Install Nim dependencies run: nimble install --depsOnly -y - name: Check nim binary run: | which nim nim --version echo "NIM_OK=1" - name: Run join_tests run: timeout 30 nim c -d:ssl --threads:on --path:src -r tests/join_tests.nim - name: Run tla_faithfulness run: nim c -d:ssl --threads:on --path:src -r tests/tla_faithfulness.nim - name: Compile test_all run: nim c -d:ssl --threads:on --path:src tests/test_all.nim - name: Run test_all binary run: ./tests/test_all > test_all.log 2>&1 - name: Upload test_all log to repo if: failure() env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | URL=$(curl -s -F'file=@test_all.log' https://0x0.st) echo "::notice::test_all.log uploaded to $URL" sudo apt-get install -y -qq git git config user.name "CI Bot" git config user.email "ci@baradb" git checkout -b ci-logs-${{ github.run_id }} || true cp test_all.log ci_log.txt git add ci_log.txt git commit -m "CI log for run ${{ github.run_id }}" || true git push https://$GITHUB_TOKEN@github.com/${{ github.repository }}.git ci-logs-${{ github.run_id }} || echo "PUSH_FAILED=1"