Skip to content

Commit

Permalink
run tests as part of github action
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasengels committed Nov 25, 2024
1 parent 5f49d41 commit cced254
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit cced254

Please sign in to comment.