add basic CI

This commit is contained in:
gmega 2024-03-01 10:16:27 -03:00
parent 226d20008b
commit 59d5fa66eb
No known key found for this signature in database
GPG Key ID: FFD8DAF00660270F
2 changed files with 27 additions and 1 deletions

26
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
nim: [version-1-6, version-2-0, devel]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nim
uses: iffy/install-nim@v4
with:
version: ${{ matrix.nim }}
- name: Build
run: nimble install -y
- name: Test
run: nimble test -y

View File

@ -12,4 +12,4 @@ requires "nim >= 1.6.16",
"metrics >= 0.1.0"
task test, "Run tests":
exec "nim c --out:./build/testeall -r tests/testall.nim"
exec "nim c --out:./build/testall -r tests/testall.nim"