Skip to content

chore: setup gh format, lint and build checks workflow for back-end part #1

chore: setup gh format, lint and build checks workflow for back-end part

chore: setup gh format, lint and build checks workflow for back-end part #1

Workflow file for this run

name: "Nest Back-End format, lint and build checks"
on:
pull_request:
branches:
- '**'
push:
branches:
- stable
- unstable
paths:
- 'src/**'
- 'test/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Check format
run: npm run format
# commented till fixing lint errors
# - name: Lint
# run: npm run lint
- name: Build
run: npm run build