Skip to content

ci: update general workflow #168

ci: update general workflow

ci: update general workflow #168

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
env:
SOLUTION: Place.sln
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: make restore SOLUTION=${{ env.SOLUTION }}
- name: Build solution
run: make build SOLUTION=${{ env.SOLUTION }}
- name: Run unit tests
run: make test-unit SOLUTION=${{ env.SOLUTION }}
- name: Run integration tests
run: make test-integration SOLUTION=${{ env.SOLUTION }}