Skip to content

chore(backend): add CI for backend #76 #1

chore(backend): add CI for backend #76

chore(backend): add CI for backend #76 #1

Workflow file for this run

name: CI Backend
on:
push:
branches: [ "develop", "main", "feat/backend-ci" ]
pull_request:
branches: [ "develop", "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
defaults:
run:
working-directory: ./backend
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
run: |
npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Run Lint
run: pnpm lint
- name: Build Project
run: pnpm build
- name: Run Tests
run: pnpm test