1
0
pl-libs/.github/workflows/tests.yml
Jonathan Hoffstadt 852176b5a3
Some checks are pending
Tests / Ubuntu (push) Waiting to run
initial commit
2024-08-26 20:24:57 -05:00

91 lines
1.7 KiB
YAML

name: Tests
on:
push:
branches:
- master
- dev
- feature/*
- dev/*
- fix/*
pull_request:
workflow_dispatch:
jobs:
# Windows:
# runs-on: windows-2019
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Run Tests
# shell: cmd
# run: |
# cd $GITHUB_WORKSPACE
# cd tests
# call build_win_tests.bat -c debug
# cd ..
# cd out
# pilot_light_test.exe
# @set PL_TEST_STATUS=%ERRORLEVEL%
# @if %PL_TEST_STATUS% NEQ 0 (exit 1)
# MacOS:
# runs-on: MacOS-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Run Tests
# run: |
# cd $GITHUB_WORKSPACE
# cd tests
# chmod +x build_mac_tests.sh
# ./build_mac_tests.sh -c debug
# cd ..
# cd out
# ./pilot_light_test
# ((exit 1) || if [ $? = 1 ]; then exit 0; else exit 1; fi)
Ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt update
sudo apt install libx11-dev -y
sudo apt install libxkbcommon-x11-dev -y
sudo apt install libx11-xcb-dev -y
sudo apt install libxcb-xfixes0-dev -y
sudo apt install libxcb-cursor-dev -y
sudo apt install libxcb-cursor0 -y
sudo apt install libxcb-keysyms1-dev -y
- name: Run Tests
run: |
cd $GITHUB_WORKSPACE
cd tests
chmod +x build_linux_tests.sh
./build_linux_tests.sh
cd ..
cd out
./pilot_light_test
((exit 1) || if [ $? = 1 ]; then exit 0; else exit 1; fi)