Add debug logging via newer CICD package + fix for GitHub (#40) #129
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: .NET | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Set Git Security | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
working-directory: ./GitHubAction | |
run: dotnet restore ./GitHubAction.sln | |
- name: Build | |
working-directory: ./GitHubAction | |
run: dotnet build --no-restore | |
- name: Test | |
working-directory: ./GitHubAction | |
run: dotnet test --no-build --verbosity normal |