2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-03 11:09:40 -04:00

Run tests/build examples at start of build.yml

This commit is contained in:
ChrisDill 2023-09-05 19:27:20 +01:00
parent e0dd8ece0f
commit 6df6a09dbf

View File

@ -9,7 +9,7 @@ on:
- '.github/ISSUE_TEMPLATE/**' - '.github/ISSUE_TEMPLATE/**'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
prepare: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
version: ${{ steps.version.outputs.version }} version: ${{ steps.version.outputs.version }}
@ -18,6 +18,17 @@ jobs:
- name: checkout repository - name: checkout repository
uses: actions/checkout@v3 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 - name: check raylib version
id: version id: version
shell: bash shell: bash
@ -176,7 +187,7 @@ jobs:
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- prepare - build
- build-android - build-android
- build-linux - build-linux
- build-osx - build-osx
@ -251,12 +262,6 @@ jobs:
- name: Restore workload - name: Restore workload
run: dotnet workload restore 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 - name: Build examples android
run: dotnet build Examples.Android -c Release run: dotnet build Examples.Android -c Release