Add weekly CodeQL analysis for C# code. Add dotnet format verification step to CI. Create .env.example documenting required environment variables. Co-Authored-By: Svrnty Inc. <eng@svrnty.com>
38 lines
761 B
YAML
38 lines
761 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [JP]
|
|
pull_request:
|
|
branches: [JP]
|
|
|
|
concurrency:
|
|
group: ci-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-and-test:
|
|
name: Build & Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: "10.0.x"
|
|
|
|
- name: Restore
|
|
run: dotnet restore Svrnty.CQRS.sln
|
|
|
|
- name: Build
|
|
run: dotnet build Svrnty.CQRS.sln --no-restore --warnaserror
|
|
|
|
- name: Test
|
|
run: dotnet test Svrnty.CQRS.sln --no-build --verbosity normal
|
|
|
|
- name: Format check
|
|
run: dotnet format Svrnty.CQRS.sln --verify-no-changes
|