diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fa10b56 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: "Check Build" + +on: + pull_request: + +jobs: + check-build: + 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 \ No newline at end of file diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index f5e8b3d..2c33717 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,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 \ No newline at end of file diff --git a/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer.csproj b/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer.csproj index 9f03ec9..313865e 100644 --- a/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer.csproj +++ b/src-examples/ProxyInterfaceConsumer/ProxyInterfaceConsumer.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 Exe enable @@ -27,4 +27,4 @@ - \ No newline at end of file + diff --git a/src-examples/ProxyInterfaceConsumerForAkka/ProxyInterfaceConsumerForAkka.csproj b/src-examples/ProxyInterfaceConsumerForAkka/ProxyInterfaceConsumerForAkka.csproj index 2c28d19..7aaee03 100644 --- a/src-examples/ProxyInterfaceConsumerForAkka/ProxyInterfaceConsumerForAkka.csproj +++ b/src-examples/ProxyInterfaceConsumerForAkka/ProxyInterfaceConsumerForAkka.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 Exe enable @@ -27,4 +27,4 @@ - \ No newline at end of file + diff --git a/src-examples/ProxyInterfaceConsumerForPnP/ProxyInterfaceConsumerForPnP.csproj b/src-examples/ProxyInterfaceConsumerForPnP/ProxyInterfaceConsumerForPnP.csproj index 573790a..20c1884 100644 --- a/src-examples/ProxyInterfaceConsumerForPnP/ProxyInterfaceConsumerForPnP.csproj +++ b/src-examples/ProxyInterfaceConsumerForPnP/ProxyInterfaceConsumerForPnP.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 Exe enable @@ -53,4 +53,4 @@ - \ No newline at end of file + diff --git a/src-examples/ProxyInterfaceConsumerViaNuGet/ProxyInterfaceConsumerViaNuGet.csproj b/src-examples/ProxyInterfaceConsumerViaNuGet/ProxyInterfaceConsumerViaNuGet.csproj index 3c7d3b6..d460741 100644 --- a/src-examples/ProxyInterfaceConsumerViaNuGet/ProxyInterfaceConsumerViaNuGet.csproj +++ b/src-examples/ProxyInterfaceConsumerViaNuGet/ProxyInterfaceConsumerViaNuGet.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 ProxyInterfaceConsumer ProxyInterfaceConsumer enable diff --git a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj index 7546c3a..9368a69 100644 --- a/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj +++ b/tests/ProxyInterfaceSourceGeneratorTests/ProxyInterfaceSourceGeneratorTests.csproj @@ -55,9 +55,6 @@ PreserveNewest - - - PreserveNewest