Skip to content

fix: test new ci

fix: test new ci #17

Workflow file for this run

name: CI_Backend
on:
pull_request:
branches:
- dev
push:
branches:
- main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: dotnet restore
- name: Build project
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=test_results.xml" --results-directory "./TestResults"
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: test-results
path: ./TestResults
if: ${{ always() }}