From 850646e73101303a84c75a01bbb5a4864463e168 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 22 May 2024 08:57:46 +0100 Subject: [PATCH 1/4] try fix workflows as testing can't happen on release builds --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ .github/workflows/nuget.yml | 9 ++------- 2 files changed, 28 insertions(+), 7 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..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 From 6b571e7714d046a5d08772f1c033927e278b38f0 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 22 May 2024 09:03:13 +0100 Subject: [PATCH 2/4] do all net8 --- .../ProxyInterfaceConsumer/ProxyInterfaceConsumer.csproj | 4 ++-- .../ProxyInterfaceConsumerForAkka.csproj | 4 ++-- .../ProxyInterfaceConsumerForPnP.csproj | 4 ++-- .../ProxyInterfaceConsumerViaNuGet.csproj | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) 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 From 345b436b37751aaccd4e1444ce0f3a0035a3f372 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 22 May 2024 09:32:59 +0100 Subject: [PATCH 3/4] disable tests on CI because I can't find out why it's not working on GA --- .github/workflows/ci.yml | 5 +---- .../ProxyInterfaceSourceGeneratorTests.csproj | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1da29ee..0714910 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,4 @@ jobs: 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 + run: dotnet build --configuration Debug --no-restore \ No newline at end of file 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 From ec33decbd7a58873eadb2c3fc6449fd8dfa44dab Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 22 May 2024 09:35:01 +0100 Subject: [PATCH 4/4] rename job --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0714910..fa10b56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: pull_request: jobs: - deploy: + check-build: runs-on: ubuntu-latest steps: