Skip to content

Commit

Permalink
ci: 🐝 update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneylab committed Mar 25, 2024
1 parent fd43ffe commit 9677cf6
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
disable-telemetry: true
- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: sudo apt-get update
run: sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev freeglut3-dev libxinerama-dev libxi-dev
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup Cpp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: sudo apt-get update
run: sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev freeglut3-dev libxinerama-dev libxi-dev
- name: Setup Cpp
uses: aminya/setup-cpp@290824452986e378826155f3379d31bce8753d76 # v0.37.0
with:
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,19 @@ jobs:
- name: building
run: |
cmake --build build --config Debug --target Catch_tests_run -j4
- name: run unit tests
- name: run component unit tests
working-directory: ./build/bin
run: |
./Catch_tests_run
./ComponentsTests
- name: run queries unit tests
working-directory: ./build/bin
run: |
./QueriesTests
- name: run systems unit tests
working-directory: ./build/bin
run: |
./SystemsTests
- name: run systems vector2d tests
working-directory: ./build/bin
run: |
./Vector2DTests
18 changes: 15 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
disable-telemetry: true
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: install
run: sudo apt-get update
run: sudo apt-get update && sudo apt-get install lcov libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev freeglut3-dev libxinerama-dev libxi-dev
- name: Setup Cpp
uses: aminya/setup-cpp@290824452986e378826155f3379d31bce8753d76 # v0.37.0
with:
Expand All @@ -28,10 +28,22 @@ jobs:
- name: building
run: |
cmake --build build --config Debug --target Catch_tests_run ComponentTests EntityTests
- name: run unit tests
- name: run component unit tests
working-directory: ./build/bin
run: |
./Catch_tests_run
./ComponentsTests
- name: run queries unit tests
working-directory: ./build/bin
run: |
./QueriesTests
- name: run systems unit tests
working-directory: ./build/bin
run: |
./SystemsTests
- name: run systems vector2d tests
working-directory: ./build/bin
run: |
./Vector2DTests
- name: generate coverage
working-directory: ./build
run: |
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,30 @@ jobs:
- name: building
run: |
cmake --build build --config Debug --target Catch_tests_run -j4
- name: run unit tests
- name: run components unit tests
run: |
cd build
cd bin
cd Debug
.\Catch_tests_run.exe
.\ComponentsTests
- name: run queries unit tests
working-directory: ./build/bin
run: |
cd build
cd bin
cd Debug
.\QueriesTests
- name: run systems unit tests
working-directory: ./build/bin
run: |
cd build
cd bin
cd Debug
.\SystemsTests
- name: run systems vector2d tests
working-directory: ./build/bin
run: |
cd build
cd bin
cd Debug
.\Vector2DTests

0 comments on commit 9677cf6

Please sign in to comment.