From b9329d51543139b10e00027528fd2056ace975d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 28 Apr 2023 17:40:14 +0300 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e807e17c7..017a8ed0e 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -3,6 +3,8 @@ name: NodeJS CI on: push: branches: [master] + pull_request: + branches: [master] permissions: contents: read @@ -16,10 +18,10 @@ jobs: node-version: [16.x, 18.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' @@ -43,7 +45,7 @@ jobs: run: | npm run security:check - - name: Test - if: ${{ success() }} - run: | - npm run test:unit + - name: Unit Tests Check + if: ${{ success() }} + run: | + npm run test:unit