Bump actions/checkout from 3 to 4 #110
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: Pull request | |
on: | |
workflow_dispatch: | |
pull_request: | |
env: | |
DOTNET_NOLOGO: 1 | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
jobs: | |
build_and_test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Set line endings | |
run: git config --global core.eol crlf | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
working-directory: src | |
run: dotnet restore | |
- name: Check formatting | |
working-directory: src | |
run: dotnet format --no-restore --verify-no-changes | |
- name: Build solution | |
working-directory: src | |
run: dotnet build --no-restore | |
- name: Run tests | |
working-directory: src | |
run: dotnet test --no-build --no-restore |