44 lines
904 B
YAML
44 lines
904 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
server:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-dotnet@v4
|
|
with:
|
|
global-json-file: global.json
|
|
|
|
- run: dotnet restore h-school.sln
|
|
|
|
- run: dotnet build h-school.sln --no-restore --configuration Release
|
|
|
|
# The AppHost tests run headless, so no Node install is needed here.
|
|
- run: dotnet test h-school.sln --no-build --configuration Release
|
|
|
|
client:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: src/HSchool.Client
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: npm
|
|
cache-dependency-path: src/HSchool.Client/package-lock.json
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm test
|