Skip to content

Commit

Permalink
[#316] Fix Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gruenwaldlk committed Aug 16, 2023
1 parent 53bd6f2 commit 33bf2c1
Showing 1 changed file with 28 additions and 19 deletions.
47 changes: 28 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Petroglyph Tools .NET Build & Test
name: Petroglyph Tools .NET Core Build & Test

on:
workflow_call:
workflow_dispatch:
push:
branches: [ develop ]
pull_request:
Expand All @@ -12,22 +10,33 @@ jobs:
build-test:
name: Build & Test
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest,ubuntu-latest, macos-latest]
configuration: [Debug, Release]
fail-fast: false
runs-on: ${{ matrix.os }}

continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Build & Test in Release Mode
run: dotnet test --configuration Release

- name: Build & Test .NET Framework
if: matrix.os == 'windows-latest'
run: dotnet test --configuration Release -f net48
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Build
run: |
dotnet build PG.Commons/PG.Commons/PG.Commons.csproj
dotnet build PG.StarWarsGame.Files.DAT/PG.StarWarsGame.Files.DAT/PG.StarWarsGame.Files.DAT.csproj
dotnet build PG.StarWarsGame.Files.MEG/PG.StarWarsGame.Files.MEG/PG.StarWarsGame.Files.MEG.csproj
dotnet build PG.StarWarsGame.Components.Localisation/PG.StarWarsGame.Components.Localisation/PG.StarWarsGame.Components.Localisation.csproj
- name: Unit Test
run: |
dotnet test PG.Testing/PG.Testing.csproj
dotnet test PG.Commons/PG.Commons.Test/PG.Commons.Test.csproj
dotnet test PG.StarWarsGame.Files.DAT/PG.StarWarsGame.Files.DAT.Test/PG.StarWarsGame.Files.DAT.Test.csproj
dotnet test PG.StarWarsGame.Files.MEG/PG.StarWarsGame.Files.MEG.Test/PG.StarWarsGame.Files.MEG.Test.csproj
dotnet test PG.StarWarsGame.Components.Localisation/PG.StarWarsGame.Components.Localisation/PG.StarWarsGame.Components.Localisation.csproj
env:
Configuration: ${{ matrix.configuration }}

0 comments on commit 33bf2c1

Please sign in to comment.