Skip to content

Commit 966e208

Browse files
committed
Added more Operating Systems to test workflow.
Changed dependabot frequency to monthly.
1 parent 5fa63d5 commit 966e208

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ updates:
88
- package-ecosystem: "nuget" # See documentation for possible values
99
directory: "/" # Location of package manifests
1010
schedule:
11-
interval: "weekly"
11+
interval: "monthly"

.github/workflows/dotnet.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
2828
- name: Setup .NET
29-
uses: actions/setup-dotnet@v3
29+
uses: actions/setup-dotnet@v4
3030
with:
3131
dotnet-version: ${{ matrix.dotnet }}
3232
- name: Cache SonarQube Cloud packages
@@ -64,3 +64,29 @@ jobs:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
6565
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6666
run: .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
67+
68+
test:
69+
70+
strategy:
71+
matrix:
72+
dotnet: [ '8.0.x' ]
73+
os: [macos-latest, ubuntu-latest, windows-latest]
74+
75+
runs-on: ${{ matrix.os }}
76+
77+
name: .NET ${{ matrix.dotnet }} on ${{ matrix.os }}
78+
79+
steps:
80+
- uses: actions/checkout@v4
81+
with:
82+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
83+
- name: Setup .NET
84+
uses: actions/setup-dotnet@v4
85+
with:
86+
dotnet-version: ${{ matrix.dotnet }}
87+
- name: Restore dependencies
88+
run: dotnet restore
89+
- name: Build
90+
run: dotnet build --no-restore
91+
- name: Test
92+
run: dotnet test --no-build --verbosity normal --collect "XPlat Code Coverage;Format=opencover"

.github/workflows/package-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v4
2525

2626
- name: Setup .NET 8
27-
uses: actions/setup-dotnet@v3
27+
uses: actions/setup-dotnet@v4
2828
with:
2929
dotnet-version: 8.0.x
3030
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json

0 commit comments

Comments
 (0)