fix ci/cd build docker image #234
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Install CA certificates to ensure SSL trust | |
- name: Install CA Certificates | |
run: sudo apt-get update && sudo apt-get install -y ca-certificates | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
# Trust the ASP.NET Core development certificate | |
- name: Trust ASP.NET Core HTTPS Development Certificate | |
run: dotnet dev-certs https --trust | |
- name: Restore dependencies | |
run: dotnet restore CleanAspire.sln | |
- name: Build | |
run: dotnet build CleanAspire.sln --no-restore | |
- name: Run tests | |
run: dotnet test ./tests/CleanAspire.Tests/CleanAspire.Tests.csproj --no-build --verbosity normal |