From 01512916e3867e101e16ada2a9622cbbb2a80d47 Mon Sep 17 00:00:00 2001 From: Miroslav Kubus Date: Sun, 17 Apr 2022 13:32:11 +0200 Subject: [PATCH 1/7] Update dotnet.yml --- .github/workflows/dotnet.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 219b1a4..85ccd68 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,10 +1,6 @@ name: .NET -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] +on: [pull_request] jobs: welcome: @@ -13,18 +9,4 @@ jobs: steps: - name: Hello message run: echo "Hello guys" - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Setup .NET - uses: actions/setup-dotnet@v2 - with: - dotnet-version: 5.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + From de563125878a991713967c8257e5097a36c8ca0e Mon Sep 17 00:00:00 2001 From: Miroslav Kubus Date: Sun, 17 Apr 2022 13:55:31 +0200 Subject: [PATCH 2/7] Update dotnet.yml --- .github/workflows/dotnet.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 85ccd68..42c4bd9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -9,4 +9,21 @@ jobs: steps: - name: Hello message run: echo "Hello guys" - + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + test: + runs-on: ubuntu-latest + steps: + - name: Test + run: dotnet test --no-build --verbosity normal From 386a904f46b49ce6a830d79a64c1b6c4af355f78 Mon Sep 17 00:00:00 2001 From: Miroslav Kubus Date: Sun, 17 Apr 2022 13:57:45 +0200 Subject: [PATCH 3/7] Update dotnet.yml --- .github/workflows/dotnet.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 42c4bd9..4a83906 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -22,8 +22,3 @@ jobs: run: dotnet restore - name: Build run: dotnet build --no-restore - test: - runs-on: ubuntu-latest - steps: - - name: Test - run: dotnet test --no-build --verbosity normal From c4707d77382350527e09ce85c561bbcb08abc170 Mon Sep 17 00:00:00 2001 From: Miroslav Kubus Date: Sun, 17 Apr 2022 14:01:56 +0200 Subject: [PATCH 4/7] Create dotnet-test.yml --- .github/workflows/dotnet-test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/dotnet-test.yml diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml new file mode 100644 index 0000000..a38858f --- /dev/null +++ b/.github/workflows/dotnet-test.yml @@ -0,0 +1,20 @@ +name: .NET + +on: pull_request + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-restore --verbosity normal From b0b2d5d4ab78f6e4249b31e24a007854b23eb13e Mon Sep 17 00:00:00 2001 From: Miroslav Kubus Date: Sun, 17 Apr 2022 14:08:02 +0200 Subject: [PATCH 5/7] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4a83906..b0b4a8f 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -11,7 +11,7 @@ jobs: run: echo "Hello guys" build: runs-on: ubuntu-latest - + needs: welcome steps: - uses: actions/checkout@v3 - name: Setup .NET From 9b20bb2c3ba367a720b23b7b154e584d36067d70 Mon Sep 17 00:00:00 2001 From: Miroslav Kubus Date: Sun, 17 Apr 2022 14:10:13 +0200 Subject: [PATCH 6/7] Delete dotnet-test.yml --- .github/workflows/dotnet-test.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/dotnet-test.yml diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml deleted file mode 100644 index a38858f..0000000 --- a/.github/workflows/dotnet-test.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: .NET - -on: pull_request - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Setup .NET - uses: actions/setup-dotnet@v2 - with: - dotnet-version: 6.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-restore --verbosity normal From 93b3f8dacec04f5fee94096c2f1a7070ad4ee613 Mon Sep 17 00:00:00 2001 From: Miroslav Kubus Date: Sun, 17 Apr 2022 14:17:25 +0200 Subject: [PATCH 7/7] Update dotnet.yml --- .github/workflows/dotnet.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b0b4a8f..9f88c61 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -22,3 +22,25 @@ jobs: run: dotnet restore - name: Build run: dotnet build --no-restore + test: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Test + run: dotnet test + publish: + runs-on: ubuntu-latest + needs: [welcome, build, test] + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 6.0.x + - name: Publish + run: dotnet publish