From 929a9b882f24fcc121204b96857204461ec0eebe Mon Sep 17 00:00:00 2001 From: Florian Vogt Date: Thu, 14 Mar 2024 11:36:15 +0100 Subject: [PATCH] ci(test): Add test execution for macos and windows --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..fe90cb0e1 --- /dev/null +++ b/.github/workflows/test.yml @@ -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