From 6df6a09dbf472ebb29ef71642ecbb701f0ded745 Mon Sep 17 00:00:00 2001 From: ChrisDill <chris.rj.dill@gmail.com> Date: Tue, 5 Sep 2023 19:27:20 +0100 Subject: [PATCH] Run tests/build examples at start of build.yml --- .github/workflows/build.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 778d338..8cbeac2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: - '.github/ISSUE_TEMPLATE/**' workflow_dispatch: jobs: - prepare: + build: runs-on: ubuntu-latest outputs: version: ${{ steps.version.outputs.version }} @@ -18,6 +18,17 @@ jobs: - name: checkout repository uses: actions/checkout@v3 + - name: setup dotnet + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + + - name: build and run tests + run: dotnet test Raylib-cs.Tests -c Release + + - name: build examples desktop + run: dotnet build Examples -c Release + - name: check raylib version id: version shell: bash @@ -176,7 +187,7 @@ jobs: publish: runs-on: ubuntu-latest needs: - - prepare + - build - build-android - build-linux - build-osx @@ -251,12 +262,6 @@ jobs: - name: Restore workload run: dotnet workload restore - - name: Build and run tests - run: dotnet test Raylib-cs.Tests -c Release - - - name: Build examples desktop - run: dotnet build Examples -c Release - - name: Build examples android run: dotnet build Examples.Android -c Release