Skip to content

ci: first setup

ci: first setup #2

Workflow file for this run

name: PR Validation
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
validate:
name: Validate PR
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Debug --no-restore
- name: Check for compilation warnings
run: dotnet build --configuration Release --no-restore --warnaserror
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Check formatting
run: dotnet format --verify-no-changes || echo "Code formatting issues detected. Run 'dotnet format' locally."
- name: PR title validation
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore