fix up actions

This commit is contained in:
Adam Hathcock
2024-06-03 10:06:09 +01:00
parent f60ee5318c
commit 88dc7fcc43
2 changed files with 27 additions and 6 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
+1 -6
View File
@@ -6,8 +6,6 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps: steps:
- name: Checkout Project - name: Checkout Project
@@ -22,10 +20,7 @@ jobs:
run: dotnet restore run: dotnet restore
- name: Build - name: Build
run: dotnet build --configuration Release --no-restore run: dotnet build --configuration Release --no-restore Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Pack - name: Pack
run: dotnet pack --no-build --configuration Release Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj --output . run: dotnet pack --no-build --configuration Release Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj --output .