From 9b8d2c4da55ec524c5ef2b549300f48080a2ace7 Mon Sep 17 00:00:00 2001 From: Sartios Savramis <917573+sartios@users.noreply.github.com> Date: Tue, 4 Nov 2025 17:32:06 +0200 Subject: [PATCH] CY-2582 Update github actions --- .github/workflows/node.js.yml | 36 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 02e2bfc..5d46b96 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,29 +1,23 @@ -# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI - +name: Tests on: pull_request: - branches: [ master ] - + push: + branches: + - master jobs: build: - runs-on: ubuntu-latest - strategy: matrix: - node-version: [10.x, 14.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - + node-version: [ '10.15.0' ] 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 - - run: npm run lint - - run: npm test + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - name: 'Run lint' + run: npm run lint + - name: 'Run tests' + run: npm run test