From 87aed2d883516cafdc9d32ff1d244fad4bdc2576 Mon Sep 17 00:00:00 2001 From: "Mr. Javascript" Date: Tue, 19 Mar 2024 18:17:01 +0400 Subject: [PATCH] Update pull-request.yml --- .github/workflows/pull-request.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index ccb994e..ea5cc23 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -4,20 +4,20 @@ on: pull_request: branches: ['main'] +env: + NODE_VERSION: 18.x + jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - name: Use Node.js ${{ env.NODE_VERSION }} + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: ${{ env.NODE_VERSION }} cache: 'npm' - run: npm i + - run: npm run lint - run: npm run test:ci