From 5130c20f82146b202e3d35c602cbdff249134fbb Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Sun, 27 Oct 2019 12:21:50 -0600 Subject: [PATCH 01/21] Update dotnetcore.yml --- .github/workflows/dotnetcore.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/dotnetcore.yml diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml new file mode 100644 index 0000000..7e853ab --- /dev/null +++ b/.github/workflows/dotnetcore.yml @@ -0,0 +1,39 @@ +name: Build and Test +env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + +on: [push] + +jobs: +# Print: +# runs-on: windows-latest +# steps: +# - run: | +# echo %GITHUB_WORKSPACE% +# exit 1234 +# shell: cmd + Build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + - name: Build + run: dotnet build src --configuration Release + Test: + needs: [Build] + runs-on: windows-latest + strategy: + matrix: + tfm: ['netcoreapp2.1', 'net461'] + steps: + - uses: actions/checkout@v1 + - name: Run tests (target framework ${{ matrix.tfm }}) + run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --list-tests + Deploy: + needs: [Build, Test] + runs-on: windows-latest + steps: + - shell: cmd + run: + echo deploying... From 0ff60334cd92985d09640ca5be3e1d09cfd20689 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Sun, 27 Oct 2019 12:21:50 -0600 Subject: [PATCH 02/21] Update dotnetcore.yml --- .github/workflows/dotnetcore.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/dotnetcore.yml diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml new file mode 100644 index 0000000..7e853ab --- /dev/null +++ b/.github/workflows/dotnetcore.yml @@ -0,0 +1,39 @@ +name: Build and Test +env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + +on: [push] + +jobs: +# Print: +# runs-on: windows-latest +# steps: +# - run: | +# echo %GITHUB_WORKSPACE% +# exit 1234 +# shell: cmd + Build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v1 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + - name: Build + run: dotnet build src --configuration Release + Test: + needs: [Build] + runs-on: windows-latest + strategy: + matrix: + tfm: ['netcoreapp2.1', 'net461'] + steps: + - uses: actions/checkout@v1 + - name: Run tests (target framework ${{ matrix.tfm }}) + run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --list-tests + Deploy: + needs: [Build, Test] + runs-on: windows-latest + steps: + - shell: cmd + run: + echo deploying... From 611c5aa4dd011e4a25ea16c7eb7d29d1144e3176 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Tue, 2 Jun 2020 23:16:33 -0600 Subject: [PATCH 03/21] run azurite --- .github/workflows/dotnetcore.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 7e853ab..dfb0c6a 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -28,6 +28,11 @@ jobs: tfm: ['netcoreapp2.1', 'net461'] steps: - uses: actions/checkout@v1 + - name: Install NPM + uses: actions/setup-node@v1 + with: + node-version: '12' + - run: npm install -g azurite - name: Run tests (target framework ${{ matrix.tfm }}) run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --list-tests Deploy: From 90d2daf3757d38a57c9d883743e141f40ace5fa6 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Tue, 2 Jun 2020 23:23:25 -0600 Subject: [PATCH 04/21] start azurite-blob in background --- .github/workflows/dotnetcore.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index dfb0c6a..920c8be 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -33,6 +33,8 @@ jobs: with: node-version: '12' - run: npm install -g azurite + - shell: cmd + run: start /B azurite-blob - name: Run tests (target framework ${{ matrix.tfm }}) run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --list-tests Deploy: From d362e5a171c363d35b8e91d23a9c3ea8298b0fb9 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Tue, 2 Jun 2020 23:32:31 -0600 Subject: [PATCH 05/21] play with dotnet test --- .github/workflows/dotnetcore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 920c8be..ef542a3 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -36,7 +36,7 @@ jobs: - shell: cmd run: start /B azurite-blob - name: Run tests (target framework ${{ matrix.tfm }}) - run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --list-tests + run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --list-tests --no-restore --verbosity normal Deploy: needs: [Build, Test] runs-on: windows-latest From 3599ef2424227718fbee08549876814118e9b2f8 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Tue, 2 Jun 2020 23:44:44 -0600 Subject: [PATCH 06/21] more testing --- .github/workflows/dotnetcore.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index ef542a3..bab4781 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -5,13 +5,6 @@ env: on: [push] jobs: -# Print: -# runs-on: windows-latest -# steps: -# - run: | -# echo %GITHUB_WORKSPACE% -# exit 1234 -# shell: cmd Build: runs-on: windows-latest steps: @@ -19,7 +12,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 - name: Build - run: dotnet build src --configuration Release + run: dotnet build ./src/ServiceBus.AttachmentPlugin.sln --configuration Release Test: needs: [Build] runs-on: windows-latest @@ -36,7 +29,7 @@ jobs: - shell: cmd run: start /B azurite-blob - name: Run tests (target framework ${{ matrix.tfm }}) - run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --list-tests --no-restore --verbosity normal + run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --no-build --list-tests --verbosity normal --nologo Deploy: needs: [Build, Test] runs-on: windows-latest From c21ff33774093954075a78223061aa741f79c44e Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Tue, 2 Jun 2020 23:54:11 -0600 Subject: [PATCH 07/21] failing tests to verify build is working Signed-off-by: Sean Feldman --- .../DummyTests.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/ServiceBus.AttachmentPlugin.Tests/DummyTests.cs diff --git a/src/ServiceBus.AttachmentPlugin.Tests/DummyTests.cs b/src/ServiceBus.AttachmentPlugin.Tests/DummyTests.cs new file mode 100644 index 0000000..26ab152 --- /dev/null +++ b/src/ServiceBus.AttachmentPlugin.Tests/DummyTests.cs @@ -0,0 +1,14 @@ +namespace ServiceBus.AttachmentPlugin.Tests +{ + using Xunit; + + public class DummyTests + { + + [Fact] + public static void ShouldFail() + { + Assert.False(true); + } + } +} \ No newline at end of file From 36572de27642cf768bbcb7ced66c4ebb9f2b30cf Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Wed, 3 Jun 2020 00:02:30 -0600 Subject: [PATCH 08/21] Add yml file to the solution and build along with testing Signed-off-by: Sean Feldman --- .github/workflows/dotnetcore.yml | 4 +++- src/ServiceBus.AttachmentPlugin.sln | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index bab4781..8ae1c85 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -28,8 +28,10 @@ jobs: - run: npm install -g azurite - shell: cmd run: start /B azurite-blob + - name: Build + run: dotnet build ./src/ServiceBus.AttachmentPlugin.sln --configuration Release - name: Run tests (target framework ${{ matrix.tfm }}) - run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --no-build --list-tests --verbosity normal --nologo + run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --no-restore --list-tests --verbosity normal --nologo Deploy: needs: [Build, Test] runs-on: windows-latest diff --git a/src/ServiceBus.AttachmentPlugin.sln b/src/ServiceBus.AttachmentPlugin.sln index a87413e..72aef9e 100644 --- a/src/ServiceBus.AttachmentPlugin.sln +++ b/src/ServiceBus.AttachmentPlugin.sln @@ -13,6 +13,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Files", "Solution Directory.Build.props = Directory.Build.props ..\README.md = ..\README.md ..\README.source.md = ..\README.source.md + ..\.github\workflows\dotnetcore.yml = ..\.github\workflows\dotnetcore.yml EndProjectSection EndProject Global From f56e075369b37a8ef6cba450bc70fd6d3a4f67c1 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Wed, 3 Jun 2020 00:16:56 -0600 Subject: [PATCH 09/21] keep version of xunit and runner the same Signed-off-by: Sean Feldman --- .../ServiceBus.AttachmentPlugin.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceBus.AttachmentPlugin.Tests/ServiceBus.AttachmentPlugin.Tests.csproj b/src/ServiceBus.AttachmentPlugin.Tests/ServiceBus.AttachmentPlugin.Tests.csproj index 986d688..3d20c95 100644 --- a/src/ServiceBus.AttachmentPlugin.Tests/ServiceBus.AttachmentPlugin.Tests.csproj +++ b/src/ServiceBus.AttachmentPlugin.Tests/ServiceBus.AttachmentPlugin.Tests.csproj @@ -12,7 +12,7 @@ - + From 77393ae9d22a6a8d0c90310abaef3c4b9851b790 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Wed, 3 Jun 2020 00:21:42 -0600 Subject: [PATCH 10/21] simplify build script Signed-off-by: Sean Feldman --- .github/workflows/dotnetcore.yml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 8ae1c85..1a8904f 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -5,7 +5,7 @@ env: on: [push] jobs: - Build: + BuildAndTest: runs-on: windows-latest steps: - uses: actions/checkout@v1 @@ -13,14 +13,6 @@ jobs: uses: actions/setup-dotnet@v1 - name: Build run: dotnet build ./src/ServiceBus.AttachmentPlugin.sln --configuration Release - Test: - needs: [Build] - runs-on: windows-latest - strategy: - matrix: - tfm: ['netcoreapp2.1', 'net461'] - steps: - - uses: actions/checkout@v1 - name: Install NPM uses: actions/setup-node@v1 with: @@ -28,14 +20,12 @@ jobs: - run: npm install -g azurite - shell: cmd run: start /B azurite-blob - - name: Build - run: dotnet build ./src/ServiceBus.AttachmentPlugin.sln --configuration Release - - name: Run tests (target framework ${{ matrix.tfm }}) - run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --framework ${{ matrix.tfm }} --no-restore --list-tests --verbosity normal --nologo + - name: Run tests + run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --list-tests --verbosity normal --nologo Deploy: - needs: [Build, Test] + needs: [BuildAndTest] runs-on: windows-latest steps: - shell: cmd run: - echo deploying... + echo deploying... \ No newline at end of file From 3af36399441914cbf0bc7f2de22e1cdb168e5e64 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Wed, 3 Jun 2020 00:30:16 -0600 Subject: [PATCH 11/21] experimenting Signed-off-by: Sean Feldman --- .github/workflows/dotnetcore.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 1a8904f..e5860dc 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -21,7 +21,7 @@ jobs: - shell: cmd run: start /B azurite-blob - name: Run tests - run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --list-tests --verbosity normal --nologo + run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal Deploy: needs: [BuildAndTest] runs-on: windows-latest From 944b179bc61d5049610bf1b699a38d0e0b52452c Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Wed, 3 Jun 2020 00:37:05 -0600 Subject: [PATCH 12/21] delete a dummy test Signed-off-by: Sean Feldman --- .../DummyTests.cs | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/ServiceBus.AttachmentPlugin.Tests/DummyTests.cs diff --git a/src/ServiceBus.AttachmentPlugin.Tests/DummyTests.cs b/src/ServiceBus.AttachmentPlugin.Tests/DummyTests.cs deleted file mode 100644 index 26ab152..0000000 --- a/src/ServiceBus.AttachmentPlugin.Tests/DummyTests.cs +++ /dev/null @@ -1,14 +0,0 @@ -namespace ServiceBus.AttachmentPlugin.Tests -{ - using Xunit; - - public class DummyTests - { - - [Fact] - public static void ShouldFail() - { - Assert.False(true); - } - } -} \ No newline at end of file From 066e34d6e8261ef2033b04901acbfa43b566f233 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Fri, 5 Jun 2020 00:34:49 -0600 Subject: [PATCH 13/21] experimental - try curl Signed-off-by: Sean Feldman --- .github/workflows/dotnetcore.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index e5860dc..51b5976 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -20,12 +20,18 @@ jobs: - run: npm install -g azurite - shell: cmd run: start /B azurite-blob - - name: Run tests - run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal - Deploy: - needs: [BuildAndTest] - runs-on: windows-latest - steps: - - shell: cmd - run: - echo deploying... \ No newline at end of file + - name: trying http://localhost:10000 + - shell: cmd + run: timeout 5 && curl http://localhost:10000 + - name: trying http://127.0.0.1:10000 + - shell: cmd + run: timeout 5 && curl http://127.0.0.1:10000 +# - name: Run tests +# run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal +# Deploy: +# needs: [BuildAndTest] +# runs-on: windows-latest +# steps: +# - shell: cmd +# run: +# echo deploying... \ No newline at end of file From a5c53a22950825748d6768e1f0db4ba96a0295c4 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Fri, 5 Jun 2020 00:41:08 -0600 Subject: [PATCH 14/21] experimental - try curl Signed-off-by: Sean Feldman --- .github/workflows/dotnetcore.yml | 42 ++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 51b5976..d24cabc 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -8,24 +8,30 @@ jobs: BuildAndTest: runs-on: windows-latest steps: - - uses: actions/checkout@v1 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - - name: Build - run: dotnet build ./src/ServiceBus.AttachmentPlugin.sln --configuration Release - - name: Install NPM - uses: actions/setup-node@v1 - with: - node-version: '12' - - run: npm install -g azurite - - shell: cmd - run: start /B azurite-blob - - name: trying http://localhost:10000 - - shell: cmd - run: timeout 5 && curl http://localhost:10000 - - name: trying http://127.0.0.1:10000 - - shell: cmd - run: timeout 5 && curl http://127.0.0.1:10000 + - uses: actions/checkout@v1 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + - name: Build + run: dotnet build ./src/ServiceBus.AttachmentPlugin.sln --configuration Release + - name: Install NPM + uses: actions/setup-node@v1 + with: + node-version: '12' + - run: npm install -g azurite + - shell: cmd + run: start /B azurite-blob + + - shell: cmd + name: trying http://127.0.0.1:10000 + run: | + timeout 5 + curl http://127.0.0.1:10000 + + - shell: cmd + name: trying http://localhost:10000 + run: | + timeout 5 + curl http://localhost:10000 # - name: Run tests # run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal # Deploy: From 1db2ce8171f1580f44a737d511dda24ec130d255 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Fri, 5 Jun 2020 09:22:11 -0600 Subject: [PATCH 15/21] Use bash to kick off azurite as a b/g process --- .github/workflows/dotnetcore.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index d24cabc..c6c3c34 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -18,26 +18,16 @@ jobs: with: node-version: '12' - run: npm install -g azurite - - shell: cmd - run: start /B azurite-blob - - - shell: cmd - name: trying http://127.0.0.1:10000 - run: | - timeout 5 - curl http://127.0.0.1:10000 + - shell: bash # "start /B" suggested in https://github.com/Azure/Azurite/issues/382#issuecomment-572409873 for AzDO doesn't work with GitHub + name: Run Azurite as a b/g process + run: azurite-blob & - - shell: cmd - name: trying http://localhost:10000 - run: | - timeout 5 - curl http://localhost:10000 -# - name: Run tests -# run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal + - name: Run tests + run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal # Deploy: # needs: [BuildAndTest] # runs-on: windows-latest # steps: # - shell: cmd # run: -# echo deploying... \ No newline at end of file +# echo deploying... From f9008e3fa11455afd41b9f2d15c502968e30196d Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Fri, 5 Jun 2020 22:57:17 -0600 Subject: [PATCH 16/21] Add a deployment step Signed-off-by: Sean Feldman --- .github/workflows/dotnetcore.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index c6c3c34..4f2d383 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -24,10 +24,11 @@ jobs: - name: Run tests run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal -# Deploy: -# needs: [BuildAndTest] -# runs-on: windows-latest -# steps: -# - shell: cmd -# run: -# echo deploying... + + - shell: bash + name: Deploy + run: | + tree -aC ./src + nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/SeanFeldman/ServiceBus.AttachmentPlugin/index.json" -UserName SeanFeldman + nuget pack + nuget push "ServiceBus.AttachmentPlugin.0.0.1.nupkg" -Source "GitHub" #.src/ServiceBus.AttachmentPlugin/nugets/ServiceBus.AttachmentPlugin.6.2.0.nupkg \ No newline at end of file From 4ec2c3078da004c9342f904512c34fa07f01b10d Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Fri, 5 Jun 2020 23:33:50 -0600 Subject: [PATCH 17/21] add nuget.exe Signed-off-by: Sean Feldman --- .github/workflows/dotnetcore.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 4f2d383..cb0815f 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -25,10 +25,14 @@ jobs: - name: Run tests run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal + + - name: Setup NuGet.exe for use with actions + uses: NuGet/setup-nuget@v1.0.2 + with: + nuget-version: latest + - shell: bash name: Deploy run: | - tree -aC ./src nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/SeanFeldman/ServiceBus.AttachmentPlugin/index.json" -UserName SeanFeldman - nuget pack nuget push "ServiceBus.AttachmentPlugin.0.0.1.nupkg" -Source "GitHub" #.src/ServiceBus.AttachmentPlugin/nugets/ServiceBus.AttachmentPlugin.6.2.0.nupkg \ No newline at end of file From b7438181b5087fef6b814674f594dee579343da0 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Fri, 5 Jun 2020 23:52:45 -0600 Subject: [PATCH 18/21] push to GitHub packages Signed-off-by: Sean Feldman --- .github/workflows/dotnetcore.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index cb0815f..e520969 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -25,14 +25,10 @@ jobs: - name: Run tests run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal - - - name: Setup NuGet.exe for use with actions - uses: NuGet/setup-nuget@v1.0.2 + - name: Deploy NuGet package to GitHub packages + uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1 with: - nuget-version: latest - - - shell: bash - name: Deploy - run: | - nuget source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/SeanFeldman/ServiceBus.AttachmentPlugin/index.json" -UserName SeanFeldman - nuget push "ServiceBus.AttachmentPlugin.0.0.1.nupkg" -Source "GitHub" #.src/ServiceBus.AttachmentPlugin/nugets/ServiceBus.AttachmentPlugin.6.2.0.nupkg \ No newline at end of file + nupkg-path: './src/**/*.nupkg' + repo-owner: 'SeanFeldman' + gh-user: 'SeanFeldman' + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From f1ff6d9e6b57132afe9b2edd3234ee99857f97cf Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Sat, 6 Jun 2020 00:12:36 -0600 Subject: [PATCH 19/21] experiment with vars Signed-off-by: Sean Feldman --- .github/workflows/dotnetcore.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index e520969..e8e6d04 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -25,10 +25,18 @@ jobs: - name: Run tests run: dotnet test ./src/ServiceBus.AttachmentPlugin.sln --configuration Release --no-restore --verbosity normal + - shell: bash + name: Get .nupkg file name + id: vars + run: | + path=$(find . -name "*.nupkg") + echo "::set-output name=nugetPath::$path" + echo ${{ steps.vars.outputs.nugetPath }} + - name: Deploy NuGet package to GitHub packages uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1 with: - nupkg-path: './src/**/*.nupkg' + nupkg-path: '${{ steps.vars.outputs.nugetPath }}' repo-owner: 'SeanFeldman' gh-user: 'SeanFeldman' token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From cff8758e800d70bbbeadf28aa2a1f1c928449db8 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Tue, 9 Jun 2020 16:43:43 -0600 Subject: [PATCH 20/21] DOTNET_NOLOGO --- .github/workflows/dotnetcore.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index e8e6d04..de9a4f8 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -1,6 +1,6 @@ name: Build and Test env: - DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_NOLOGO: true on: [push] @@ -18,7 +18,7 @@ jobs: with: node-version: '12' - run: npm install -g azurite - - shell: bash # "start /B" suggested in https://github.com/Azure/Azurite/issues/382#issuecomment-572409873 for AzDO doesn't work with GitHub + - shell: bash name: Run Azurite as a b/g process run: azurite-blob & @@ -39,4 +39,4 @@ jobs: nupkg-path: '${{ steps.vars.outputs.nugetPath }}' repo-owner: 'SeanFeldman' gh-user: 'SeanFeldman' - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} From 05a7b70cb3beb56f6c372d019b9697929c4fd28f Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Tue, 9 Jun 2020 16:57:09 -0600 Subject: [PATCH 21/21] skip deployment for now --- .github/workflows/dotnetcore.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index de9a4f8..6987211 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -33,10 +33,10 @@ jobs: echo "::set-output name=nugetPath::$path" echo ${{ steps.vars.outputs.nugetPath }} - - name: Deploy NuGet package to GitHub packages - uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1 - with: - nupkg-path: '${{ steps.vars.outputs.nugetPath }}' - repo-owner: 'SeanFeldman' - gh-user: 'SeanFeldman' - token: ${{ secrets.GITHUB_TOKEN }} +# - name: Deploy NuGet package to GitHub packages +# uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1 +# with: +# nupkg-path: '${{ steps.vars.outputs.nugetPath }}' +# repo-owner: 'SeanFeldman' +# gh-user: 'SeanFeldman' +# token: ${{ secrets.GITHUB_TOKEN }}