Files
noodl/.github/workflows/test-platform-node.yml
Michael Cartner b9c60b07dc Initial commit
Co-Authored-By: Eric Tuvesson <eric.tuvesson@gmail.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: Anders Larsson <64838990+anders-topp@users.noreply.github.com>
Co-Authored-By: Johan  <4934465+joolsus@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: victoratndl <99176179+victoratndl@users.noreply.github.com>
2024-01-26 11:52:55 +01:00

42 lines
959 B
YAML

name: Test noodl/platform-node
on:
push:
branches: ["main"]
paths:
- 'packages/noodl-platform/**'
- 'packages/noodl-platform-node/**'
- 'packages/noodl-platform-electron/**'
pull_request:
paths:
- 'packages/noodl-platform/**'
- 'packages/noodl-platform-node/**'
- 'packages/noodl-platform-electron/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test_platform:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node env 🏗
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies 🏗
run: npm install
- name: Run tests
run: npx lerna exec --scope @noodl/platform-node -- npm run test
- name: Print coverage
run: npx lerna exec --scope @noodl/platform-node -- npm run test:coverage