Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(ci): run unit tests in dev workflow
Elian Doran6fcd229b52ac
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.ymlindex 3afb9811c2..d2ad631b0f 100644--- a/.github/workflows/dev.yml+++ b/.github/workflows/dev.yml@@ -33,6 +33,10 @@ jobs:- name: Run the TypeScript buildrun: npx tsc++ - name: Run the unit tests+ run: npm run test+build_docker:name: Build Docker imageruns-on: ubuntu-latest@@ -45,7 +49,7 @@ jobs:with:node-version: 20cache: "npm"- - run: npm ci+ - run: npm ci- name: Run the TypeScript buildrun: npx tsc- name: Create server-package.json@@ -55,7 +59,7 @@ jobs:with:context: .cache-from: type=gha- cache-to: type=gha,mode=max+ cache-to: type=gha,mode=maxtest_docker:name: Check Docker buildruns-on: ubuntu-latest@@ -69,7 +73,7 @@ jobs:steps:- name: Checkout the repositoryuses: actions/checkout@v4-+- name: Set IMAGE_NAME to lowercaserun: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> $GITHUB_ENV- name: Set TEST_TAG to lowercase@@ -83,12 +87,12 @@ jobs:with:node-version: 20cache: "npm"-+- run: npm ci-+- name: Run the TypeScript buildrun: npx tsc-+- name: Create server-package.jsonrun: cat package.json | grep -v electron > server-package.json@@ -101,12 +105,12 @@ jobs:tags: ${{ env.TEST_TAG }}cache-from: type=ghacache-to: type=gha,mode=max-+- name: Validate container run outputrun: |CONTAINER_ID=$(docker run -d --log-driver=journald --rm --name trilium_local ${{ env.TEST_TAG }})echo "Container ID: $CONTAINER_ID"-+- name: Wait for the healthchecks to passuses: stringbean/docker-healthcheck-action@v3with: