From 877dcdec388bf36db303cb43e0041bd4200acfc0 Mon Sep 17 00:00:00 2001 From: Sebastien DUMETZ Date: Thu, 13 Jun 2024 11:44:46 +0200 Subject: [PATCH] update CI build to test nodejs releases compatibility --- .github/workflows/build.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5687faab..bb5d798d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,16 @@ jobs: build-ui: name: UI runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16, 22] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: ${{ matrix.node-version }} cache: 'npm' - name: install voyager dependencies run: (cd source/voyager && npm ci --legacy-peer-deps) @@ -27,12 +30,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16, 18, 20] + node-version: [16, 18, 20, 22] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' @@ -40,7 +43,11 @@ jobs: run: npm ci && (cd source/server && npm ci) - name: test run: (cd source/server && npm test) - - name: build + - name: build server run: npm run build-server - - + - name: check if watch mode works + timeout-minutes: 1 + # this will crash if some some reason watch mode is terrybly broken + #It won't wait for client code to compile though. + run: + npm run watch -- --exitcrash -- --version