* Improve tool handling * Rework stuff with new hosting options * Update readme * Fix build * Try run client tests * Fix build * Fix issues on linux * Try to run testserver on linux * Fix test issue * Fix code smells
57 lines
No EOL
1.4 KiB
YAML
57 lines
No EOL
1.4 KiB
YAML
name: .NET Build, Test and publish
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "master" ]
|
|
pull_request:
|
|
branches: [ "main", "master" ]
|
|
release:
|
|
types: [published,edited]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
|
|
- name: Fetch all history for all tags and branches
|
|
run: |
|
|
if [ -f "$(git rev-parse --git-dir)/shallow" ]; then
|
|
git fetch --prune --unshallow
|
|
else
|
|
echo "Repository is already complete."
|
|
fi
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v2
|
|
with:
|
|
dotnet-version: |
|
|
8.0.x
|
|
9.0.x
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Install dependencies for tests
|
|
run: npm install @modelcontextprotocol/server-everything
|
|
|
|
- name: Install dependencies for tests
|
|
run: npm install @modelcontextprotocol/server-memory
|
|
|
|
- name: Run Cake script
|
|
uses: cake-build/cake-action@v1
|
|
with:
|
|
verbosity: Diagnostic
|
|
env:
|
|
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY}}
|
|
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |