Add documentation files and GitHub Actions workflow for deploying docs #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| extensions: ffi | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction | |
| - name: Install virtual display | |
| run: sudo apt-get update && sudo apt-get install -y xvfb | |
| - name: Run tests | |
| run: | | |
| Xvfb :99 -screen 0 1024x768x24 & | |
| export DISPLAY=:99 | |
| sleep 1 | |
| php tests/index_test.php | |
| php tests/widgets_test/AdditionalWidgetsTest.php | |
| php tests/widgets_test/ButtonTest.php | |
| php tests/widgets_test/CanvasTest.php | |
| php tests/widgets_test/CheckbuttonTest.php | |
| php tests/widgets_test/GeometryTest.php | |
| php tests/widgets_test/InputTest.php | |
| php tests/widgets_test/LabelTest.php | |
| php tests/widgets_test/MenuTest.php | |
| php tests/widgets_test/MenubuttonTest.php | |
| php tests/widgets_test/MessageTest.php | |
| php tests/widgets_test/TopLevelWidgetTest.php | |
| php tests/widgets_test/WindowTest.php | |
| test-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| extensions: ffi | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction | |
| - name: Run tests | |
| run: | | |
| php tests/index_test.php | |
| php tests/widgets_test/AdditionalWidgetsTest.php | |
| php tests/widgets_test/ButtonTest.php | |
| php tests/widgets_test/CanvasTest.php | |
| php tests/widgets_test/CheckbuttonTest.php | |
| php tests/widgets_test/GeometryTest.php | |
| php tests/widgets_test/InputTest.php | |
| php tests/widgets_test/LabelTest.php | |
| php tests/widgets_test/MenuTest.php | |
| php tests/widgets_test/MenubuttonTest.php | |
| php tests/widgets_test/MessageTest.php | |
| php tests/widgets_test/TopLevelWidgetTest.php | |
| php tests/widgets_test/WindowTest.php | |
| test-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.1' | |
| extensions: ffi | |
| - name: Install Composer dependencies | |
| run: composer install --no-interaction | |
| - name: Run tests | |
| run: | | |
| php tests/index_test.php | |
| php tests/widgets_test/AdditionalWidgetsTest.php | |
| php tests/widgets_test/ButtonTest.php | |
| php tests/widgets_test/CanvasTest.php | |
| php tests/widgets_test/CheckbuttonTest.php | |
| php tests/widgets_test/GeometryTest.php | |
| php tests/widgets_test/InputTest.php | |
| php tests/widgets_test/LabelTest.php | |
| php tests/widgets_test/MenuTest.php | |
| php tests/widgets_test/MenubuttonTest.php | |
| php tests/widgets_test/MessageTest.php | |
| php tests/widgets_test/TopLevelWidgetTest.php | |
| php tests/widgets_test/WindowTest.php |