Skip to content

refactor: 💡 Rename file #12

refactor: 💡 Rename file

refactor: 💡 Rename file #12

name: Workflow 001 - Format
on:
workflow_dispatch:
pull_request:
types: [opened, ready_for_review, synchronize, reopened]
paths:
- "**.cs"
- ".editorconfig"
push:
paths:
- "**.cs"
- ".editorconfig"
jobs:
dotnet-format:
if: github.event.pull_request.draft == false || contains(github.event_name, 'workflow_dispatch')
# Setup runner - `ubuntu-22.04` is as of 12/2023 the latest LTS ubuntu runner
runs-on: ubuntu-22.04
steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"
- name: Install dotnet-format tool
run: dotnet tool install -g dotnet-format
- name: Check out code
uses: actions/checkout@v3
- name: Run dotnet format
run: dotnet format . --verify-no-changes --verbosity diagnostic