Skip to content

Setup Java for CI (#3) #20

Setup Java for CI (#3)

Setup Java for CI (#3) #20

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "21"
- name: Install Aspire workload
run: dotnet workload install aspire
- name: Setup .NET dev certs
run: |
dotnet tool update -g linux-dev-certs
dotnet linux-dev-certs install
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal