38 lines
756 B
YAML
Executable file
38 lines
756 B
YAML
Executable file
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOTNET_NOLOGO: true
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up dotnet
|
|
uses: https://github.com/actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
|
|
- name: Set up pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- name: Build server
|
|
run: dotnet build -c Release
|
|
|
|
- name: Test server
|
|
run: dotnet test -c Release
|
|
|
|
- name: Build client
|
|
run: pnpm install && pnpm run build
|
|
working-directory: client
|