From 411eb216deb6fe35e9135323cd6064bc76707330 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 15:20:58 +0100 Subject: [PATCH 01/15] Update and rename blank.yml to build.yml --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6764fed --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,16 @@ +name: build + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.0.100' + - run: dotnet build + - run: dotnet test From d0767f096cf3c665d3752e4e24babda31e03d2f9 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 15:22:17 +0100 Subject: [PATCH 02/15] Update global.json --- global.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.json b/global.json index 6b64107..79422f0 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "2.2.103" + "version": "3.0.100" } } From 9d1abf6e190eb02cf4bbe0ae5dc2a0b0740d2606 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 15:24:36 +0100 Subject: [PATCH 03/15] Update Sample to .NET Core 3.0 --- samples/Sample/Sample.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/Sample/Sample.csproj b/samples/Sample/Sample.csproj index ecb432d..8aadc81 100644 --- a/samples/Sample/Sample.csproj +++ b/samples/Sample/Sample.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.2 + netcoreapp3.0 Debug;Release;DebugNoRedirect From 535eea23481cc10f4bde66cc2b7417c67de98a42 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 15:27:48 +0100 Subject: [PATCH 04/15] Updated test to .NET Core 3.0 --- test/GetPass.Test/GetPass.Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/GetPass.Test/GetPass.Test.csproj b/test/GetPass.Test/GetPass.Test.csproj index 2a5db44..69fa1ac 100644 --- a/test/GetPass.Test/GetPass.Test.csproj +++ b/test/GetPass.Test/GetPass.Test.csproj @@ -1,7 +1,7 @@ - netcoreapp2.2 + netcoreapp2.2,netcoreapp3.0 false From f69676881fcf0b607d06a5de73f34aac4c487574 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 15:28:23 +0100 Subject: [PATCH 05/15] Update Sample for multitargeting --- samples/Sample/Sample.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/Sample/Sample.csproj b/samples/Sample/Sample.csproj index 8aadc81..2e314e2 100644 --- a/samples/Sample/Sample.csproj +++ b/samples/Sample/Sample.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp3.0 + netcoreapp2.2,netcoreapp3.0 Debug;Release;DebugNoRedirect From 63edc7b0f4df0edfdabd4d1817bc7f62558647c2 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 15:32:13 +0100 Subject: [PATCH 06/15] Update build.yml --- .github/workflows/build.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6764fed..a2b847c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,17 @@ jobs: build: runs-on: ubuntu-latest - + + strategy: + matrix: + dotnet: [ '2.2.402', '3.0.100' ] + steps: - uses: actions/checkout@v1 - uses: actions/setup-dotnet@v1 with: - dotnet-version: '3.0.100' - - run: dotnet build - - run: dotnet test + dotnet-version: ${{ matrix.dotnet }} + - name: build ${{ matrix.dotnet }} + run: dotnet build + - name: test ${{ matrix.dotnet }} + run: dotnet test From 01eb97aa2f765eecb1704c58c5085c65b6260c0d Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 15:55:42 +0100 Subject: [PATCH 07/15] Fixed multitargeting --- .github/workflows/build.yml | 15 +++++++-------- samples/Sample/Sample.csproj | 2 +- test/GetPass.Test/GetPass.Test.csproj | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2b847c..42029b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,16 +7,15 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - dotnet: [ '2.2.402', '3.0.100' ] - steps: - uses: actions/checkout@v1 - uses: actions/setup-dotnet@v1 with: - dotnet-version: ${{ matrix.dotnet }} - - name: build ${{ matrix.dotnet }} + dotnet-version: '3.0.100' + - name: build run: dotnet build - - name: test ${{ matrix.dotnet }} - run: dotnet test + - name: test + strategy: + matrix: + dotnet: [ 'netcoreapp2.2', 'netcoreapp3.0' ] + run: dotnet test --framework ${{ matrix.dotnet }} diff --git a/samples/Sample/Sample.csproj b/samples/Sample/Sample.csproj index 2e314e2..7773026 100644 --- a/samples/Sample/Sample.csproj +++ b/samples/Sample/Sample.csproj @@ -2,7 +2,7 @@ Exe - netcoreapp2.2,netcoreapp3.0 + netcoreapp2.2;netcoreapp3.0 Debug;Release;DebugNoRedirect diff --git a/test/GetPass.Test/GetPass.Test.csproj b/test/GetPass.Test/GetPass.Test.csproj index 69fa1ac..80fe549 100644 --- a/test/GetPass.Test/GetPass.Test.csproj +++ b/test/GetPass.Test/GetPass.Test.csproj @@ -1,7 +1,7 @@ - netcoreapp2.2,netcoreapp3.0 + netcoreapp2.2;netcoreapp3.0 false From 81b65c018937625c25a7cfa02d9547e84ea7c122 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 15:58:30 +0100 Subject: [PATCH 08/15] Update build.yml --- .github/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42029b2..c2c75e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,8 +14,7 @@ jobs: dotnet-version: '3.0.100' - name: build run: dotnet build - - name: test - strategy: - matrix: - dotnet: [ 'netcoreapp2.2', 'netcoreapp3.0' ] - run: dotnet test --framework ${{ matrix.dotnet }} + - name: test 2.2 + run: dotnet test --framework netcoreapp2.2 --no-build + - name: test 3.0 + run: dotnet test --framework netcoreapp3.0 --no-build From f1da896cce19ffc0b0fd43347f757bcad58c07f5 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 16:13:18 +0100 Subject: [PATCH 09/15] Release action --- .github/workflows/build.yml | 6 +++--- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2c75e7..7f4cd20 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: build -on: [push] +on: push jobs: build: @@ -15,6 +15,6 @@ jobs: - name: build run: dotnet build - name: test 2.2 - run: dotnet test --framework netcoreapp2.2 --no-build + run: dotnet test --framework netcoreapp2.2 --no-build - name: test 3.0 - run: dotnet test --framework netcoreapp3.0 --no-build + run: dotnet test --framework netcoreapp3.0 --no-build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..20c8999 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: build + +on: + push: + branches: + - actions + tags: + - * + +jobs: + release: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.0.100' + - uses: actions/upload-artifact@v1 + with: + name: package + path: artifacts + - name: build + run: dotnet build -c Release + - name: test 2.2 + run: dotnet test -c Release --framework netcoreapp2.2 --no-build + - name: test 3.0 + run: dotnet test -c Release --framework netcoreapp3.0 --no-build + - name: pack + shell: bash + run: | + version=`git describe --tags --dirty` + dotnet pack -c Release --no-build -o artifacts -p:Version=$version From cf9932572d0f7e725700bad84daf1d0524e331ff Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 16:18:03 +0100 Subject: [PATCH 10/15] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20c8999..a095081 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: branches: - actions tags: - - * + - !dummy jobs: release: From e5a925be1c8d55b22d33a91f0c01f554f2911b49 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 16:20:50 +0100 Subject: [PATCH 11/15] update --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a095081..7c684f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,10 +17,10 @@ jobs: - uses: actions/setup-dotnet@v1 with: dotnet-version: '3.0.100' - - uses: actions/upload-artifact@v1 - with: - name: package - path: artifacts + - uses: actions/upload-artifact@master + with: + name: package + path: artifacts - name: build run: dotnet build -c Release - name: test 2.2 From 5e237991683154f332d28f9fc7d4ece92f1b0f82 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 16:21:49 +0100 Subject: [PATCH 12/15] update --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c684f9..7f0b063 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,11 @@ -name: build +name: release on: push: branches: - actions tags: - - !dummy + - '!dummy' jobs: release: From a97af0ca22cdc9c0521b07ecb44b8c0cea0e104e Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 16:24:02 +0100 Subject: [PATCH 13/15] update --- .github/workflows/build.yml | 5 ++++- .github/workflows/release.yml | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f4cd20..058d6ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,9 @@ name: build -on: push +on: + push: + branches: + - '!dummy' jobs: build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f0b063..0ebbc80 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: release on: push: branches: - - actions + - 'actions' tags: - '!dummy' @@ -17,6 +17,7 @@ jobs: - uses: actions/setup-dotnet@v1 with: dotnet-version: '3.0.100' + - run: mkdir -p artifacts - uses: actions/upload-artifact@master with: name: package From 919f5efa2eab138996f5405bfd35b5a60c3cc855 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 16:25:31 +0100 Subject: [PATCH 14/15] update --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ebbc80..73af135 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-dotnet@v1 with: - dotnet-version: '3.0.100' + dotnet-version: [ '2.2.402', 3.0.100' ] - run: mkdir -p artifacts - uses: actions/upload-artifact@master with: From 879a68331954642a081cb1dcdc0988a33cee0580 Mon Sep 17 00:00:00 2001 From: Alessio Franceschelli Date: Mon, 7 Oct 2019 16:26:27 +0100 Subject: [PATCH 15/15] update --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73af135..095f6f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,10 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-dotnet@v1 with: - dotnet-version: [ '2.2.402', 3.0.100' ] + dotnet-version: '2.2.402' + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: '3.0.100' - run: mkdir -p artifacts - uses: actions/upload-artifact@master with: