From c5e54b482324ee25f7ee71216f68cf77e576b616 Mon Sep 17 00:00:00 2001 From: Mateusz Skoczek Date: Mon, 23 Sep 2024 23:34:40 +0200 Subject: [PATCH] Create master.yml --- .github/workflows/master.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/master.yml diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..495db80 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,30 @@ +name: "[Pull request][dev] Build and test" + +on: + pull_request: + branches: + - "master" + +jobs: + build: + name: Build and test + runs-on: ubuntu-latest + steps: + - name: Checkout + 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 + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4