Skip to content

fix ci/cd build docker image #234

fix ci/cd build docker image

fix ci/cd build docker image #234

Workflow file for this run

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