.slnx requires .NET 9 SDK / MSBuild 17.8+. The Gitea runner has only .NET 8, so build the test project directly — its ProjectReference transitively builds ClaudeMailbox.csproj. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 lines
736 B
YAML
34 lines
736 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOTNET_ROOT: /home/mika/.dotnet
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Build
|
|
run: |
|
|
set -euo pipefail
|
|
export PATH="$DOTNET_ROOT:$PATH"
|
|
dotnet build tests/ClaudeMailbox.Tests/ClaudeMailbox.Tests.csproj -c Release
|
|
|
|
- name: Test
|
|
run: |
|
|
set -euo pipefail
|
|
export PATH="$DOTNET_ROOT:$PATH"
|
|
dotnet test tests/ClaudeMailbox.Tests/ClaudeMailbox.Tests.csproj \
|
|
-c Release --no-build --logger "console;verbosity=normal"
|