From d4d0925c3e21d9baf5a218e87c95f8943d5944a4 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 26 Jan 2022 14:41:22 +0100 Subject: [PATCH] Add CI script --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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..888f285 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + nim: [1.2.16, 1.4.8, stable] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install Nim + uses: iffy/install-nim@v3 + with: + version: ${{ matrix.nim }} + - name: Install NodeJS + uses: actions/setup-node@v2 + with: + node-version: '14' + - name: Install test node + working-directory: testnode + run: npm install + - name: Run test node + run: npm start & + - name: Build + run: nimble install -y + - name: Test + run: nimble test -y