41 lines
807 B
YAML
Executable File
41 lines
807 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@v4
|
|
|
|
- name: Install dotnet
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 9.0.x
|
|
|
|
- name: Build and test api
|
|
run: dotnet test -c release
|
|
|
|
- name: Install pnpm
|
|
uses: https://github.com/pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
run_install: false
|
|
|
|
- name: Install packages
|
|
working-directory: "client"
|
|
run: pnpm install
|
|
|
|
- name: Build client
|
|
working-directory: "client"
|
|
run: pnpm run build
|