Skip to content

Commit

Permalink
ci: Improvements in CI workflow (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelbeltran authored Nov 24, 2024
1 parent f2a38d4 commit 5a16791
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: Format
working-directory: ./src
Expand Down
71 changes: 64 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,80 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'microsoft'
java-version: '17'
- name: Setup Android SDK
uses: android-actions/setup-android@v3

# Pre-build setup
- name: Restore workloads
working-directory: ./src
run: dotnet workload restore
- name: Restore dependencies

# Raygun.Blazor
- name: Build Raygun.Blazor
continue-on-error: true
working-directory: ./src
run: dotnet build Raygun.Blazor/Raygun.Blazor.csproj
# Raygun.Blazor tests
- name: Test Raygun.Blazor
continue-on-error: true
working-directory: ./src
run: dotnet test Raygun.Tests.Blazor/Raygun.Tests.Blazor.csproj

# Raygun.Blazor.Server
- name: Build Raygun.Blazor.Server
continue-on-error: true
working-directory: ./src
run: dotnet build Raygun.Blazor.Server/Raygun.Blazor.Server.csproj
# Raygun.Blazor.Server tests
- name: Test Raygun.Blazor.Server
continue-on-error: true
working-directory: ./src
run: dotnet test Raygun.Tests.Blazor.Server/Raygun.Tests.Blazor.Server.csproj
# Raygun.Blazor.Server sample
- name: Build Raygun.Samples.Blazor.Server
continue-on-error: true
working-directory: ./src
run: dotnet build Raygun.Samples.Blazor.Server/Raygun.Samples.Blazor.Server.csproj

# Raygun.Blazor.WebAssembly
- name: Build Raygun.Blazor.WebAssembly
continue-on-error: true
working-directory: ./src
run: dotnet build Raygun.Blazor.WebAssembly/Raygun.Blazor.WebAssembly.csproj
# Raygun.Blazor.WebAssembly sample
- name: Build Raygun.Samples.Blazor.WebAssembly
continue-on-error: true
working-directory: ./src
run: dotnet build Raygun.Samples.Blazor.Server/Raygun.Samples.Blazor.Server.csproj

# Raygun.Blazor.Maui
- name: Build Raygun.Blazor.Maui
continue-on-error: true
working-directory: ./src
run: dotnet build Raygun.Blazor.Maui/Raygun.Blazor.Maui.csproj
# Raygun.Blazor.Maui Windows sample
- name: Build Raygun.Samples.Blazor.Maui Windows
continue-on-error: true
working-directory: ./src
run: dotnet build Raygun.Samples.Blazor.Maui/Raygun.Samples.Blazor.Maui.csproj -f net8.0-windows10.0.19041.0
# Raygun.Blazor.Maui Android sample
- name: Build Raygun.Samples.Blazor.Maui Android
continue-on-error: true
working-directory: ./src
run: dotnet restore
- name: Build
run: dotnet build Raygun.Samples.Blazor.Maui/Raygun.Samples.Blazor.Maui.csproj -f net8.0-android
# Raygun.Blazor.Maui iOS sample
- name: Build Raygun.Samples.Blazor.Maui ios
continue-on-error: true
working-directory: ./src
run: dotnet build --no-restore
- name: Test
run: dotnet build Raygun.Samples.Blazor.Maui/Raygun.Samples.Blazor.Maui.csproj -f net8.0-ios
# Raygun.Blazor.Maui macOS sample
- name: Build Raygun.Samples.Blazor.Maui maccatalyst
continue-on-error: true
working-directory: ./src
run: dotnet test
run: dotnet build Raygun.Samples.Blazor.Maui/Raygun.Samples.Blazor.Maui.csproj -f net8.0-maccatalyst
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@

<!-- For appsettings.json -->
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.300",
"version": "9.0.100",
"rollForward": "latestFeature"
}
}

0 comments on commit 5a16791

Please sign in to comment.