Skip to content

11039 the api should return a 401 status code when a session is invalid #4886

11039 the api should return a 401 status code when a session is invalid

11039 the api should return a 401 status code when a session is invalid #4886

name: Build and Test on windows, linux and macos
on:
push:
branches: [ master ]
paths:
- 'testdata/**'
- 'backend/**'
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened]
paths:
- 'backend/**'
- 'testdata/**'
workflow_dispatch:
jobs:
analyze:
strategy:
matrix:
os: [ubuntu-latest,windows-latest,macos-latest] #windows-latest and macos-latest excluded temporarily
name: Run dotnet build and test
runs-on: ${{ matrix.os}}
env:
DOTNET_HOSTBUILDER__RELOADCONFIGONCHANGE: false
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Build
run: |
dotnet build backend/Designer.sln -v m
- name: Test
run: |
dotnet test backend/Designer.sln --filter FullyQualifiedName~AppDevelopmentController --no-build; dotnet test backend/Designer.sln --filter FullyQualifiedName~PreviewController --no-build; dotnet test backend/Designer.sln --filter "(Category!=GiteaIntegrationTest)&(FullyQualifiedName!~AppDevelopmentController)&(FullyQualifiedName!~PreviewController)" -v m --no-build