2024-01-08 23:25:50 +03:00
|
|
|
name: .NET Test Pipeline
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2024-05-30 21:19:54 +03:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
[master, 'release/*']
|
2024-01-08 23:25:50 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-07-02 23:24:28 +03:00
|
|
|
- name: Checkout repository
|
2024-05-30 21:19:54 +03:00
|
|
|
- uses: actions/checkout@v4
|
2024-01-08 23:25:50 +03:00
|
|
|
|
|
|
|
- name: Set up .NET Core
|
2024-05-30 21:19:54 +03:00
|
|
|
uses: actions/setup-dotnet@v4
|
2024-01-08 23:25:50 +03:00
|
|
|
with:
|
|
|
|
dotnet-version: 8.0.x
|
|
|
|
|
|
|
|
- name: Restore dependencies
|
|
|
|
run: dotnet restore
|
|
|
|
|
|
|
|
- name: Build the solution
|
|
|
|
run: dotnet build --configuration Release
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: dotnet test --configuration Release --no-build --no-restore --verbosity normal
|