Skip to content

Fix formatting

Fix formatting #884

name: Api
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_api:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
- name: Set up .NET
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
with:
dotnet-version: "10.0.x"
- name: Build project and dependencies
working-directory: ./api
run: dotnet build
test_api:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
- name: Set up .NET
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
with:
dotnet-version: "10.0.x"
- name: Build project and dependencies
working-directory: ./api.Tests
run: dotnet build -warnaserror
- name: Run tests
working-directory: ./api.Tests
run: dotnet test
check_formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6
- name: Setup .NET Core
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 #v5
with:
dotnet-version: "10.0.x"
- name: Run csharpier format
working-directory: ./api
run: |
dotnet tool restore
dotnet csharpier . --check