-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e45460
commit aed9b07
Showing
1 changed file
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }}" |