From de83d52a2c781b8053b2d2eb785b61e0f47adc91 Mon Sep 17 00:00:00 2001 From: Rafa Gayoso Date: Sun, 17 Nov 2024 15:35:14 +0100 Subject: [PATCH 1/3] add pr pipeline --- .github/workflows/pr-pipeline.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/pr-pipeline.yml diff --git a/.github/workflows/pr-pipeline.yml b/.github/workflows/pr-pipeline.yml new file mode 100644 index 00000000..7b0b42f1 --- /dev/null +++ b/.github/workflows/pr-pipeline.yml @@ -0,0 +1,21 @@ +name: PR Pipeline + +on: + pull_request: + branches: [ "main" ] + +jobs: + build: + name: PR Pipeline + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0 + + - name: Build with dotnet + run: dotnet build --configuration Release \ No newline at end of file From 6f4705966f73d608b7c7637bd2339029a97d927b Mon Sep 17 00:00:00 2001 From: Rafa Gayoso Date: Fri, 22 Nov 2024 21:32:37 +0100 Subject: [PATCH 2/3] add a new line to weather forecast (#1) * add a new line to weather forecast * break the build * correct build --------- Co-authored-by: Rafa Gayoso From e6b7969cae89c3928d3decf2c3bf279c42bb9f58 Mon Sep 17 00:00:00 2001 From: Rafa Gayoso Date: Sun, 24 Nov 2024 12:28:21 +0100 Subject: [PATCH 3/3] add dotnet test to pr verify --- .github/workflows/pr-pipeline.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-pipeline.yml b/.github/workflows/pr-pipeline.yml index 7b0b42f1..381fe37c 100644 --- a/.github/workflows/pr-pipeline.yml +++ b/.github/workflows/pr-pipeline.yml @@ -18,4 +18,7 @@ jobs: dotnet-version: 8.0 - name: Build with dotnet - run: dotnet build --configuration Release \ No newline at end of file + run: dotnet build --configuration Release + + - name: dotnet test + run: dotnet test --configuration Release --no-build