From aed9b07722f1ce5cb76c711e58cb12810f206a89 Mon Sep 17 00:00:00 2001 From: Jakub Tokarczyk <101338588+SarcasticMoose@users.noreply.github.com> Date: Wed, 5 Jun 2024 13:43:49 +0200 Subject: [PATCH] Update release-and-publish.yml --- .github/workflows/release-and-publish.yml | 31 +++++++++++++++-------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 951d809..274d3ce 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -1,34 +1,43 @@ -name: Worflow CI +name: Workflow CI + on: pull_request: branches: [ "master" ] push: - branches: [ "master"] + branches: [ "master" ] + jobs: - setup: - runs-on: ${{matrix.os}} + build: + runs-on: ubuntu-latest strategy: matrix: os: [ubuntu-latest] net-version: ['8.x'] fail-fast: false - build: - needs: setup - runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - - name: Setup .NET 8.x + - name: Setup .NET ${{ matrix.net-version}} uses: actions/setup-dotnet@v3 with: - dotnet-version: ${{ matrix.net-version }} + dotnet-version: ${{ matrix.net-version}} - name: Install dependencies run: dotnet restore - name: Build run: dotnet build + test: - needs: [build,setup] - runs-on: ${{matrix.os}} + needs: build + runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest] + net-version: ['8.x'] + fail-fast: false steps: - uses: actions/checkout@v4 + - name: Setup .NET ${{ matrix['net-version'] }} + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ matrix['net-version'] }} - name: Test run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.net-version }}"