MongoDB
by kiliczsh
- .github
- workflows
name: CI
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Install cmake-js globally
run: npm install -g cmake-js
- name: Clone and build libnut-core
run: |
cd ..
git clone https://github.com/nut-tree/libnut.git libnut-core
cd libnut-core
npm install
cmake-js rebuild
cd ../nutjs-windows-control
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test