Skip to content

Add frontend workflow to CI pipeline #27

Add frontend workflow to CI pipeline

Add frontend workflow to CI pipeline #27

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
backend:
name: Backend
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore
run: dotnet restore PokerBank.slnx
- name: Build
run: dotnet build PokerBank.slnx --configuration Release --no-restore
- name: Test
run: dotnet test PokerBank.slnx --configuration Release --no-build
frontend:
name: Frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: PokerBank.Web
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24.x
cache: npm
cache-dependency-path: PokerBank.Web/package-lock.json
- name: Install
run: npm ci
- name: Check
run: npm run check
- name: Build
run: npm run build