From f115cc50ac72c76f936b2a542e1263a6821b18e3 Mon Sep 17 00:00:00 2001 From: Catherine Lawlor <55924986+CathLass@users.noreply.github.com> Date: Thu, 27 Jun 2024 08:53:21 +0100 Subject: [PATCH 1/2] Create build.yml basic pipeline so that any PR put up is built and tested --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..217f7cb --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: .NET + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - 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 --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal From e0ddbc55882fcacda26c6514bd5216d063ceb546 Mon Sep 17 00:00:00 2001 From: CLAWLOR Date: Thu, 27 Jun 2024 09:03:53 +0100 Subject: [PATCH 2/2] add paths to solution file --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 217f7cb..f6e519b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,8 +21,8 @@ jobs: with: dotnet-version: 8.0.x - name: Restore dependencies - run: dotnet restore + run: dotnet restore dfe.data.SearchPrototype.web/DfE.Data.SearchPrototype.web.sln - name: Build - run: dotnet build --no-restore + run: dotnet build dfe.data.SearchPrototype.web/DfE.Data.SearchPrototype.web.sln --no-restore - name: Test - run: dotnet test --no-build --verbosity normal + run: dotnet test dfe.data.SearchPrototype.web/DfE.Data.SearchPrototype.web.sln --no-build --verbosity normal