From d6af6a74df5411d9891ef8105fde80b8e5c24b83 Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Sun, 8 Dec 2024 21:59:25 +0100 Subject: [PATCH] Rin linter only once --- .github/workflows/test.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 022144a8..06000ead 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,22 @@ env: npm_config_cache: /tmp/npm-cache jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: "Checkout code" + uses: actions/checkout@v4 + - name: "Use Node.js" + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: "npm" + - name: "Install dependencies" + run: | + npm run install-mm:dev + - name: "Run linter tests" + run: npm run lint unit-tests: runs-on: ubuntu-latest strategy: @@ -15,6 +31,7 @@ jobs: - 18.x - 20.x - 22.x + - 23.x steps: - name: checkout uses: actions/checkout@v4 @@ -31,7 +48,6 @@ jobs: path: ${{ env.npm_config_cache }} - run: npm install - - run: npm run lint - run: npm run test-unit integration-tests: