From 59d5fa66eb77a810d7e294c0f9d3bf1c35a42925 Mon Sep 17 00:00:00 2001 From: gmega Date: Fri, 1 Mar 2024 10:16:27 -0300 Subject: [PATCH] add basic CI --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ chroprof.nimble | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5b4497b --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file diff --git a/chroprof.nimble b/chroprof.nimble index 9d95185..f0a0bb2 100644 --- a/chroprof.nimble +++ b/chroprof.nimble @@ -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" \ No newline at end of file + exec "nim c --out:./build/testall -r tests/testall.nim" \ No newline at end of file