Updated system tests #1
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
# Datenstrom Yellow system tests | |
name: System tests | |
on: [push, pull_request] | |
jobs: | |
installation-tests: | |
name: Installation on ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: latest | |
extensions: curl, gd, mbstring, zip | |
ini-file: development | |
coverage: none | |
tools: none | |
- name: Set up problem matcher | |
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
- name: Set up test environment | |
run: php yellow.php skip installation | |
php-tests: | |
name: PHP ${{ matrix.php }} | |
strategy: | |
matrix: | |
php: [8.2, 8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 7.0] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: curl, gd, mbstring, zip | |
ini-file: development | |
coverage: none | |
tools: none | |
- name: Set up problem matcher | |
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
- name: Set up test environment | |
run: php yellow.php skip installation | |
- name: Run tests | |
run: php yellow.php generate tests | |
extension-tests: | |
name: Extensions | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: latest | |
extensions: curl, gd, mbstring, zip | |
ini-file: development | |
coverage: none | |
tools: none | |
- name: Set up problem matcher | |
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
- name: Set up test environment | |
run: php .github/workflows/make-tests.php | |
- name: Run tests | |
run: cd tests; php yellow.php generate tests |