Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Apr 28, 2023
1 parent 1459fe0 commit b9329d5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: NodeJS CI
on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read
Expand All @@ -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'
Expand All @@ -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

0 comments on commit b9329d5

Please sign in to comment.