Skip to content

Commit

Permalink
Update release-and-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SarcasticMoose authored Jun 5, 2024
1 parent 884e64c commit b5913cf
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
name: Worflow CI
on: [push, pull_request]
on:
pull_request:
branches: [ "master" ]
push:
branches: [ "master"]
jobs:
build:
runs-on: ${{ matrix.os }}
setup:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
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
Expand All @@ -19,14 +26,13 @@ jobs:
- name: Build
run: dotnet build
test:
needs: [build]
needs: [build,setup]
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
net-version: ['8.x']
steps:
- uses: actions/checkout@v4
- name: Test
run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.net-version }}"

versionize:
needs : [setup,build,test]
runs-on: ${{matrix.os}}

0 comments on commit b5913cf

Please sign in to comment.