2022-01-26 13:41:22 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-08-29 09:29:10 +00:00
|
|
|
nim: [1.6.14, stable]
|
2022-01-26 13:41:22 +00:00
|
|
|
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
|
2022-01-27 09:07:52 +00:00
|
|
|
working-directory: testnode
|
2022-01-26 13:41:22 +00:00
|
|
|
run: npm start &
|
|
|
|
- name: Build
|
|
|
|
run: nimble install -y
|
|
|
|
- name: Test
|
|
|
|
run: nimble test -y
|