try fix workflows as testing can't happen on release builds

This commit is contained in:
Adam Hathcock
2024-05-22 08:57:46 +01:00
parent 8c385739ef
commit 850646e731
2 changed files with 28 additions and 7 deletions
+26
View File
@@ -0,0 +1,26 @@
name: "Check Build"
on:
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Debug --no-restore
- name: Test
run: dotnet test --no-build --configuration Debug --verbosity normal
+2 -7
View File
@@ -6,8 +6,6 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- name: Checkout Project
@@ -22,13 +20,10 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
run: dotnet build --configuration Release --no-restore Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj
- name: Pack
run: dotnet pack --no-build --configuration Release Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj --output .
run: dotnet pack --no-build --configuration Release Speckle.ProxyGenerator/Speckle.ProxyGenerator.csproj --output .
- name: Push to nuget.org
run: dotnet nuget push *.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{secrets.CONNECTORS_NUGET_TOKEN }} --skip-duplicate