mirror of https://github.com/dotnet/tye.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
592 B
31 lines
592 B
name: Format
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- main
|
|
- release/*
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup .NET Core SDK
|
|
uses: actions/setup-dotnet@v1.7.2
|
|
with:
|
|
dotnet-version: 3.1.100
|
|
|
|
- name: dotnet tool restore
|
|
run: dotnet tool restore
|
|
|
|
- name: add dotnet format problem matcher
|
|
run: echo "::add-matcher::build/dotnet-format-problem-matcher.json"
|
|
|
|
- name: dotnet format
|
|
run: dotnet format -w tye.sln --check --dry-run -v diag
|
|
|
|
|