Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: PR Validation

on:
pull_request:
branches: [main, master]

jobs:
validate:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x

- name: Restore dependencies
run: dotnet restore

# Lint check using dotnet format
# - name: Check code formatting
# run: dotnet format --verify-no-changes --verbosity diagnostic

# Build all projects
- name: Build HeadlessCms project
run: dotnet build Dappi.HeadlessCms --configuration Release --no-restore

- name: Build Cli project
run: dotnet build Dappi.Cli --configuration Release --no-restore

- name: Build SourceGenerator project
run: dotnet build Dappi.SourceGenerator --configuration Release --no-restore

- name: Build Core project
run: dotnet build Dappi.Core --configuration Release --no-restore

# Run tests
- name: Run HeadlessCms Tests
run: dotnet test Dappi.HeadlessCms.Tests --configuration Release --no-restore --verbosity normal

- name: Run Core Tests
run: dotnet test Dappi.Core.Tests --configuration Release --no-restore --verbosity normal
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Restore dependencies
run: dotnet restore

- name: Build DependencyInjection project
- name: Build HeadlessCms project
run: dotnet build Dappi.HeadlessCms --configuration Release /p:Version=${{ github.event.release.tag_name }} --no-restore

- name: Build Cli project
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Build Core project
run: dotnet build Dappi.Core --configuration Release /p:Version=${{ github.event.release.tag_name }} --no-restore

- name: Pack DependencyInjection
- name: Pack HeadlessCms
run: dotnet pack Dappi.HeadlessCms --configuration Release /p:Version=${{ github.event.release.tag_name }} --no-build --output nupkgs

- name: Pack SourceGenerator
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ coverage/
.coverage

# Entity Framework migration files
Migrations/
/templates/MyCompany.MyProject.WebApi/Migrations/

# Ignore IDE-specific files
*.idea/
Expand Down
Loading
Loading