From cced2547db2b83cc070ae17b4265f0341678e6e8 Mon Sep 17 00:00:00 2001 From: Thomas Engels Date: Mon, 25 Nov 2024 15:54:25 +0100 Subject: [PATCH] run tests as part of github action --- .github/workflows/build.yml | 1 + .github/workflows/release.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8590f2e..1e84f0e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,5 +28,6 @@ jobs: cache: 'npm' cache-dependency-path: package-lock.json - run: npm ci + - run: ng test ng-inbo --no-watch --code-coverage - run: npm run build --if-present diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2bfe5d..9eae44e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18.17.0 + node-version: 18.17.0 - name: Cache Node.js modules uses: actions/cache@v4 @@ -41,6 +41,9 @@ jobs: - name: Build Angular library run: ng build ng-inbo --configuration production + - name: run unit tests + run: ng test ng-inbo --no-watch --code-coverage + - name: Set up semantic-release run: npm install --save-dev semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/npm