Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Apr 11, 2024
1 parent d84b5ef commit e148c8e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Build & Test

on:
push:
Expand All @@ -8,13 +8,20 @@ on:
branches:
- main

env:
NET6: net6.0
NET7: net7.0
NET8: net8.0

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
dotnet-version: [ '6.0.x', '7.0.x', '8.0.x' ]
runs-on: ${{ matrix.os }}
env:
NET_VERSION: net${{ matrix.dotnet-version }}

steps:
- uses: actions/checkout@v4
Expand All @@ -27,7 +34,7 @@ jobs:
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.os }} ${{ matrix.dotnet-version }}"
run: dotnet test -f ${{ env.NET_VERSION }} --no-restore --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.os }} ${{ matrix.dotnet-version }}"
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
Expand Down

0 comments on commit e148c8e

Please sign in to comment.