little update #1
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 | |
nim c -d:debug $file | |
done | |
shell: bash | |
- name: Build C tests (HttpX HTTP Server) ⚡ | |
run: | | |
cd tests | |
echo "###===--- Default for" $file "---===###" | |
for file in $(ls -v testc*.nim); do | |
nim c -d:httpx -d:debug $file | |
done | |
shell: bash | |
- name: Build C tests (HttpBeast HTTP Server) ⚡ | |
run: | | |
cd tests | |
echo "###===--- Default for" $file "---===###" | |
for file in $(ls -v testc*.nim); do | |
nim c -d:beast -d:debug $file | |
done | |
shell: bash | |
- name: Build C tests (MicroAsyncHttpServer) ⚡ | |
run: | | |
cd tests | |
echo "###===--- Default for" $file "---===###" | |
for file in $(ls -v testc*.nim); do | |
nim c -d:micro -d:debug $file | |
done | |
shell: bash | |
- name: Build JS tests 🍍 | |
run: | | |
cd tests | |
for file in $(ls -v testjs*.nim); do | |
nim js -d:debug -d:enableUi $file | |
done | |
shell: bash |