Skip to content

Commit

Permalink
CI: More CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davelim committed Oct 31, 2024
1 parent 25ad012 commit 1ee0ee6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
dotnet: [ '8.0.x' ]
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest, macOS-latest]

steps:
- uses: actions/checkout@v1
Expand All @@ -21,7 +21,3 @@ jobs:
run: dotnet build --configuration Release
- name: Tests
run: dotnet test DotNetDBF.Test/DotNetDBF.Test.csproj --configuration Release --no-build --no-restore
- name: Publish
run:
dotnet nuget push "publish/*.nupkg" --source https://nuget.pkg.github.com/ekonbenefits/index.json --api-key ${{ secrets.GITHUB_TOKEN }}
if: matrix.os == 'windows-latest'
14 changes: 11 additions & 3 deletions .github/workflows/dotnet48.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ jobs:
dotnet-version: 4.7.2

- name: Restore
run: dotnet restore -p:TargetFramework=net472
run: nuget restore DotNetDBF.sln
- name: Build
run: dotnet build -f net472 --no-restore -t:rebuild -property:Configuration=Release
run: msbuild DotNetDBF.sln --no-restore -t:rebuild -property:Configuration=Release
- name: Test
run: dotnet test --configuration Release --no-build --no-restore
uses: microsoft/vstest-action@v1.0.0
with:
testAssembly: DotNetDBF.Test.dll
searchFolder: .\DotNetDBF.Test\bin\Release\*\
runInParallel: true
platform: x64
- name: Publish
run:
dotnet nuget push "publish/*.nupkg" --source https://nuget.pkg.github.com/ekonbenefits/index.json --api-key ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1ee0ee6

Please sign in to comment.