update docs #16
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: CLI | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.x | |
include-prerelease: false | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v2 | |
- name: Clean | |
run: dotnet clean | |
- name: NuGet clear cache | |
run: nuget locals all -clear | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Check format | |
run: dotnet format --verify-no-changes | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Check dependencies for deprecated packages | |
run: dotnet list package --deprecated | |
- name: Check dependencies for vulnerable packages | |
run: dotnet list package --vulnerable --include-transitive | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal --collect "Code coverage" | |
- name: Publish | |
working-directory: src/PhotoArchiver.Console | |
run: dotnet publish --configuration Release | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dotnet | |
path: src/*.Console/bin/Release/*/publish/ |