From e7d12609a0072ff3a7097f8ee95625cd4423583b Mon Sep 17 00:00:00 2001 From: stasel <2033301+stasel@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:46:57 +0100 Subject: [PATCH] update actions to node v22 --- .github/workflows/client-code-style-check.yml | 27 ++++++++-------- .github/workflows/server-tests.yml | 31 +++++++++---------- 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/.github/workflows/client-code-style-check.yml b/.github/workflows/client-code-style-check.yml index eb1fbf4..4716851 100644 --- a/.github/workflows/client-code-style-check.yml +++ b/.github/workflows/client-code-style-check.yml @@ -3,29 +3,28 @@ name: Client Code style (prettier, lint) on: push: - branches: [ develop, main ] + branches: [develop, main] pull_request: - branches: [ develop, main ] + branches: [develop, main] jobs: build: - runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x] + node-version: [22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # Note: keep this the same as the version on Heroku! steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - working-directory: client - - run: npm run code-style-check - working-directory: client + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm ci + working-directory: client + - run: npm run code-style-check + working-directory: client diff --git a/.github/workflows/server-tests.yml b/.github/workflows/server-tests.yml index a9d95af..d103fc1 100644 --- a/.github/workflows/server-tests.yml +++ b/.github/workflows/server-tests.yml @@ -3,30 +3,29 @@ name: Server tests on: push: - branches: [ develop, main ] + branches: [develop, main] pull_request: - branches: [ develop, main ] + branches: [develop, main] jobs: build: - runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x] + node-version: [22.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - name: Install dependencies - run: npm ci - working-directory: server - - name: Run tests - run: npm test - working-directory: server + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - name: Install dependencies + run: npm ci + working-directory: server + - name: Run tests + run: npm test + working-directory: server