Windows #28
This file contains 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: Windows | |
on: | |
workflow_dispatch: ~ | |
schedule: | |
- cron: 0 13 * * 1-5 | |
permissions: read-all | |
jobs: | |
windows: | |
name: Contao ${{ matrix.contao }} | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
contao: [4.13, 5.3, 5.x] | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 # not all packages are compatible with PHP 8.3 yet | |
extensions: dom, fileinfo, filter, gd, hash, intl, json, mbstring, mysqli, pcre, pdo_mysql, zlib | |
ini-values: memory_limit=1G | |
coverage: none | |
- name: Adjust the Git autocrlf setting | |
run: git config --global core.autocrlf false | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.contao }} | |
show-progress: false | |
- name: Install Contao | |
uses: ramsey/composer-install@v3 | |
- name: Run the unit tests | |
run: vendor/bin/phpunit.bat |