update init sql #32
This file contains hidden or 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: .NET CI | |
on: | |
push: | |
branches: [ "develop" ] | |
pull_request: | |
branches: [ "develop", "main" ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Check code formatting | |
run: dotnet format --verify-no-changes --verbosity detailed | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Run tests and check coverage | |
run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:Threshold=80 | |
- name: Run .NET Code Analysis | |
run: dotnet build /p:EnforceCodeStyleInBuild=true /p:AnalysisMode=All /p:TreatWarningsAsErrors=true |