mirror of
https://github.com/Smaug123/managed-git
synced 2025-10-17 13:48:42 +00:00
A bit of professionalisation (#1)
This commit is contained in:
35
.github/workflows/dotnet.yml
vendored
Normal file
35
.github/workflows/dotnet.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: .NET
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macOS-latest
|
||||
- windows-latest
|
||||
|
||||
runs-on: ${{matrix.os}}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --no-restore
|
||||
- name: Test
|
||||
run: dotnet test --no-build --verbosity normal
|
||||
- name: Prepare .NET tools
|
||||
run: dotnet tool restore
|
||||
- name: Run Fantomas
|
||||
run: ./hooks/pre-push
|
Reference in New Issue
Block a user