32 lines
802 B
YAML
32 lines
802 B
YAML
name: Debug Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
debug:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Nim
|
|
uses: iffy/install-nim@v4
|
|
with:
|
|
version: 'binary: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: Compile and run minimal test
|
|
run: nim c --threads:on --path:src -r tests/test_minimal.nim
|
|
|
|
- name: Compile test_all
|
|
run: nim c -d:ssl --threads:on --path:src tests/test_all.nim
|
|
|
|
- name: Run test_all binary
|
|
run: timeout 60 ./tests/test_all || echo "EXIT_CODE=$?"
|