solve #231 #588
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing 👨🔬 | |
on: | |
push: | |
branches: | |
- 'master' | |
paths-ignore: | |
- 'docs/**' | |
- '.github/ISSUE_TEMPLATE/*' | |
- '*.md' | |
- '*.nimble' | |
- '.gitignore' | |
- 'LICENSE' | |
- '**/FUNDING.yml' | |
- '**/gh-pages.yml' | |
- '**/examples.yml' | |
- '**/language_bindings.yml' | |
- '**/examples/website/**' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '.github/ISSUE_TEMPLATE/*' | |
- '*.md' | |
- '*.nimble' | |
- '.gitignore' | |
- 'LICENSE' | |
- '**/FUNDING.yml' | |
- '**/gh-pages.yml' | |
- '**/examples.yml' | |
- '**/language_bindings.yml' | |
- '**/examples/website/**' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
nim_version: | |
- '2.0.0' | |
env: | |
TIMEOUT_EXIT_STATUS: 124 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache nimble | |
id: cache-nimble | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }} | |
- uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: ${{ matrix.nim_version }} | |
- name: Install Dependencies 🔃 | |
run: | | |
nimble refresh | |
nimble install -y -d | |
- name: Build C tests (Default HTTP Server) ⚡ | |
run: | | |
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 | |
- name: Build C tests (HttpX HTTP Server) ⚡ | |
run: | | |
cd tests | |
for file in $(ls -v testc*.nim); do | |
echo "###===--- C Test for " $file " via Httpx ---===###" | |
nim c -d:httpx -d:debug --hints:off --warnings:off $file | |
done | |
shell: bash | |
- name: Build C tests (HttpBeast HTTP Server) ⚡ | |
run: | | |
cd tests | |
for file in $(ls -v testc*.nim); do | |
echo "###===--- C Test for " $file " via HttpBeast ---===###" | |
nim c -d:beast -d:debug --hints:off --warnings:off $file | |
done | |
shell: bash | |
- name: Build C tests (MicroAsyncHttpServer) ⚡ | |
run: | | |
cd tests | |
for file in $(ls -v testc*.nim); do | |
echo "###===--- C Test for " $file " via MicroAsyncHttpServer ---===###" | |
nim c -d:micro -d:debug --hints:off --warnings:off $file | |
done | |
shell: bash | |
- name: Build JS tests 🍍 | |
run: | | |
cd tests | |
for file in $(ls -v testjs*.nim); do | |
echo "###===--- JS Test for " $file " ---===###" | |
nim js -d:debug -d:enableUi --hints:off --warnings:off $file | |
done | |
shell: bash |