Skip to content

CICD builds every time now #2

CICD builds every time now

CICD builds every time now #2

Workflow file for this run

name: .NET Core Desktop
on: [ push, pull_request ]
#branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${Working_Dir}
env:
Working_Dir: ./src/
Solution_Name: Extended.Collections.sln
Solution_Path: ${Working_Dir}${Solution_Name}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore Dotnet Tools
run: dotnet tool restore
- name: Run Git Version
run: |
dotnet-gitversion
echo Semantic Version: ${GitVersion_SemVer}
- name: Build
run: dotnet build ${Solution_Path}
- name: Execute unit tests
run: dotnet test ${Solution_Path}
- name: Restore the application
run: dotnet msbuild ${Solution_Path} -t:Restore -p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}