From 0f3e31db6ac38e4b80d8c7290049c4544aecff01 Mon Sep 17 00:00:00 2001 From: paulpestov <10750176+paulpestov@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:23:45 +0200 Subject: [PATCH] ci: add linting to ci --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b701ebea..a58b0b3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ name: Node.js CI on: push: - branches: [ "develop" ] + branches: [ "develop", "main-variants" ] pull_request: branches: [ "develop", "main", "main-variants" ] jobs: @@ -37,13 +37,16 @@ jobs: restore-keys: | cypress-${{ runner.os }}-cypress-node${{ matrix.node-version }}- - - name: Install dependencies + - name: Setup node uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm ci + - name: Run Linting + run: npm run lint - name: Run tests run: | - npm ci npm run start:mock-api & npm run test # - name: Save test video folder