Skip to content

Commit

Permalink
Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ClusterM committed Sep 19, 2023
1 parent 9eda09e commit 64d0694
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,28 @@ permissions:
id-token: write

jobs:
tests:
strategy:
matrix:
host: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.host }}
env:
TESTS_PATH: ./Tests
TESTS_CONFIGURATION: Debug
steps:
- name: Fix line endings
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Tests
run: dotnet test ${{ env.TESTS_PATH }} -c ${{ env.TESTS_CONFIGURATION }}

build:
needs: [tests]
strategy:
matrix:
host: [ubuntu-latest]
Expand Down Expand Up @@ -61,26 +82,6 @@ jobs:
name: ${{ env.OUTPUT_SUBDIR }}
path: ${{ env.OUTPUT_FILE }}

tests:
strategy:
matrix:
host: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.host }}
env:
TESTS_PATH: ./Tests
TESTS_CONFIGURATION: Debug
steps:
- name: Fix line endings
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Tests
run: dotnet test ${{ env.TESTS_PATH }} -c ${{ env.TESTS_CONFIGURATION }}

upload-to-pages:
needs: [build, tests]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 64d0694

Please sign in to comment.