From 88dc7fcc43cc6ea230636ce8f86fdfe55f051c05 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Mon, 3 Jun 2024 10:06:09 +0100 Subject: [PATCH] fix up actions --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ .github/workflows/nuget.yml | 7 +------ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1da29ee --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index f5e8b3d..3350d1e 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -6,8 +6,6 @@ on: jobs: deploy: runs-on: ubuntu-latest - env: - DOTNET_CLI_TELEMETRY_OPTOUT: true steps: - name: Checkout Project @@ -22,10 +20,7 @@ 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.InterfaceGenerator/Speckle.InterfaceGenerator.csproj - name: Pack run: dotnet pack --no-build --configuration Release Speckle.InterfaceGenerator/Speckle.InterfaceGenerator.csproj --output .