CI: Master push workflow updated

pull/3437/head
Bahadır Sofuoğlu 2022-12-20 09:36:25 +03:00
parent 4a6d7a0d00
commit 005d192afc
1 changed files with 34 additions and 34 deletions

View File

@ -1,49 +1,49 @@
name: NodeJS CI name: NodeJS CI
on: on:
push: push:
branches: [ master ] branches: [master]
permissions: permissions:
contents: read contents: read
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [16.x, 18.x] node-version: [16.x, 18.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'npm' cache: 'npm'
- name: Build - name: Build
run: | run: |
npm install npm install
- name: Lint Check - name: Lint Check
if: ${{ success() }} if: ${{ success() }}
run: | run: |
npm run lint npm run format:check
- name: Code Format - name: Code Format
if: ${{ success() }} if: ${{ success() }}
run: | run: |
npm run format:check npm run format:check
- name: Security Check - name: Security Check
if: ${{ success() }} if: ${{ success() }}
run: | run: |
npm run security:check npm run security:check
- name: Test - name: Test
if: ${{ success() }} if: ${{ success() }}
run: | run: |
npm run test:unit npm run test:unit