Skip to content

Test

Test #185

Workflow file for this run

name: test
run-name: Test
on:
push:
branches:
- "main"
paths:
- "webui.nim"
- "nimdoc.cfg"
- "webui.nimble"
- ".github/workflows/test.yml"
- "webui/**"
- "examples/**"
pull_request:
jobs:
tests:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
nim:
- 1.6.x
- stable
name: Nim ${{ matrix.nim }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Nim
uses: jiro4989/setup-nim-action@v2
with:
nim-version: ${{ matrix.nim }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Init submodules
run: git submodule update --init
- name: Generate bindings
run: |
nimble install c2nim -y
nim scripts/generate_bindings.nims
- name: Compile examples
run: |
nim c -f examples/minimal.nim
nim c -f examples/hello_world.nim
nim c -f examples/hello_world_c.nim
nim c -f examples/call_nim_from_js.nim
nim c -f examples/call_js_from_nim.nim
nim c -f examples/public_network_access.nim
nim c -f examples/serve_folder/serve_folder.nim
nim c -f examples/qxexample/qxexample.nim
# nim c -f examples/text_editor/src/text_editor.nim # osfiles/dialog not available in macos