Files
mern-template/.github/workflows/build-backend.yml
2025-01-28 20:02:53 +02:00

32 lines
670 B
YAML

name: Build Backend (Server)
on:
pull_request:
branches:
- main
jobs:
build-backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './server'
strategy:
matrix:
node-version: [20.x]
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
clean: true
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: './server/package-lock.json'
- run: npm ci
- run: npm run build