Workitems v2.0.0 #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
env: | |
BUILD_CONFIG: 'Release' | |
SOLUTION: 'DocxTemplater.sln' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 #Fetch all history for all tags and branches | |
with: | |
fetch-depth: 0 | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.x 7.x 8.x | |
- name: Restore dependencies | |
run: nuget restore $SOLUTION | |
- name: Build | |
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore | |
- name: Run tests | |
run: dotnet test -c $BUILD_CONFIG --no-restore --no-build --verbosity normal |