Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Oct 5, 2024
1 parent 5fd9370 commit c2ed353
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,34 @@ jobs:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review # Change reporter.
src: 'src/*.nim'
built_in_server:
name: Test C via built-in server 🧪
needs: dependencies
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
env:
TIMEOUT_EXIT_STATUS: 124
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.nimble
.nim_runtime
key: ${{ runner.os }}-nimble-v2-${{ hashFiles('*.nimble') }}
- name: Build C tests (Default HTTP Server) ⚡
run: |
export PATH=$PATH:$PWD/.nim_runtime/bin
cd tests
echo "###===--- Default for" $file "---===###"
for file in $(ls -v testc*.nim); do
echo "###===--- C Test for " $file " via stdlib ---===###"
nim c -d:debug --hints:off --warnings:off $file
done
shell: bash
async_http_server:
name: Test C via AsyncHttpServer 🧪
needs: dependencies
Expand All @@ -91,7 +119,7 @@ jobs:
echo "###===--- Default for" $file "---===###"
for file in $(ls -v testc*.nim); do
echo "###===--- C Test for " $file " via stdlib ---===###"
nim c -d:debug --hints:off --warnings:off $file
nim c -d:debug -d:stdserver --hints:off --warnings:off $file
done
shell: bash
micro_async_http_server:
Expand Down

0 comments on commit c2ed353

Please sign in to comment.