Skip to content

Build your personal knowledge base with Trilium Notes

chore(ci): define relations between dev jobs

Elian Doranf4789857617b
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index 295a259ce9..3afb9811c2 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -16,9 +16,28 @@ env:
TEST_TAG: ${{ github.repository_owner }}/notes:test
jobs:
+ test_dev:
+ name: Test development
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout the repository
+ uses: actions/checkout@v4
+
+ - name: Set up node & dependencies
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: "npm"
+
+ - run: npm ci
+
+ - name: Run the TypeScript build
+ run: npx tsc
build_docker:
name: Build Docker image
runs-on: ubuntu-latest
+ needs:
+ - test_dev
steps:
- uses: actions/checkout@v4
- name: Set up node & dependencies
@@ -36,27 +55,12 @@ jobs:
with:
context: .
cache-from: type=gha
- cache-to: type=gha,mode=max
- test_dev:
- name: Test development
- runs-on: ubuntu-latest
- steps:
- - name: Checkout the repository
- uses: actions/checkout@v4
-
- - name: Set up node & dependencies
- uses: actions/setup-node@v4
- with:
- node-version: 20
- cache: "npm"
-
- - run: npm ci
-
- - name: Run the TypeScript build
- run: npx tsc
+ cache-to: type=gha,mode=max
test_docker:
name: Check Docker build
runs-on: ubuntu-latest
+ needs:
+ - build_docker
strategy:
matrix:
include: