refactor: #26 move business logic from controllers to new services #15
Workflow file for this run
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: 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 |