Add CI script

This commit is contained in:
Mark Spanbroek 2022-01-26 14:41:22 +01:00
parent 062b367f32
commit d4d0925c3e
1 changed files with 30 additions and 0 deletions

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

@ -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