Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: add @notesnook/core test workflow

Abdullah Atta42c745088adb
diff --git a/.github/workflows/core.tests.yml b/.github/workflows/core.tests.yml
new file mode 100644
index 000000000..e08bc9b76
--- /dev/null
+++ b/.github/workflows/core.tests.yml
@@ -0,0 +1,27 @@
+name: "Test @notesnook/core"
+
+on:
+ push:
+ branches:
+ - "master"
+ paths:
+ - "packages/core/**"
+ pull_request:
+ types:
+ - "ready_for_review"
+ - "opened"
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Use Node.js 16.x
+ uses: actions/setup-node@v2
+ with:
+ node-version: 16.x
+ - name: Prepare environment
+ run: npm install
+ - name: Run all @notesnook/core tests
+ run: npx nx test:e2e @notesnook/core
diff --git a/packages/core/.github/workflows/nodejs.yml b/packages/core/.github/workflows/nodejs.yml
deleted file mode 100644
index 1e18abacb..000000000
--- a/packages/core/.github/workflows/nodejs.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: Node.js CI
-
-on: [push, pull_request]
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2
- - name: Use Node.js 16.x
- uses: actions/setup-node@v2
- with:
- node-version: 16.x
- - run: npm install
- - run: npm test
- env:
- CI: true