Skip to content

Release 1.0.0-preview.1 #34

Release 1.0.0-preview.1

Release 1.0.0-preview.1 #34

Workflow file for this run

name: Format
on:
pull_request: {}
# to be removed. only needed for the initial setup. running on pull requests is enough.
push: { branches: [ main ] }
jobs:
check:
name: check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
- name: Check formatting
run: |
if dotnet format --verify-no-changes; then
echo "formatting passed"
else
rc="$?"
echo "formatting failed; run 'dotnet format'" >&2
exit "$rc"
fi