mirror of
https://github.com/logos-storage/nim-chroprof.git
synced 2026-01-04 06:23:11 +00:00
add basic CI
This commit is contained in:
parent
226d20008b
commit
59d5fa66eb
26
.github/workflows/ci.yml
vendored
Normal file
26
.github/workflows/ci.yml
vendored
Normal 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
|
||||
@ -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"
|
||||
Loading…
x
Reference in New Issue
Block a user