generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(test): Add test execution for macos and windows
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Unit and Integration | ||
strategy: | ||
matrix: | ||
version: [18, 20, 21] | ||
os: [ubuntu-22.04, windows-2022, macos-14] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.version }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Perform build | ||
run: npm run build-test | ||
|
||
- name: Run unit tests | ||
run: npm run unit |