2023-11-20 20:36:57 +00:00
|
|
|
# Datenstrom Yellow system tests
|
|
|
|
|
|
|
|
name: System tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
2023-11-20 21:23:20 +00:00
|
|
|
extension-tests:
|
2023-11-24 17:17:26 +00:00
|
|
|
name: Extensions
|
2023-11-24 17:22:50 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-11-20 20:36:57 +00:00
|
|
|
steps:
|
|
|
|
- name: Check out code
|
2024-03-04 15:40:24 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-20 20:36:57 +00:00
|
|
|
- name: Set up PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
2023-11-20 21:23:20 +00:00
|
|
|
php-version: latest
|
2023-11-20 20:36:57 +00:00
|
|
|
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
|
2023-11-24 21:39:45 +00:00
|
|
|
run: |
|
2024-04-01 16:16:16 +00:00
|
|
|
php yellow.php skip installation large
|
2023-11-24 21:44:01 +00:00
|
|
|
echo "Generate:exclude" > content/contact/page.md
|
|
|
|
echo "Generate:exclude" > content/search/page.md
|
2023-11-20 20:36:57 +00:00
|
|
|
- name: Run tests
|
2023-11-24 21:24:34 +00:00
|
|
|
run: php yellow.php generate tests
|
2023-11-20 21:23:20 +00:00
|
|
|
php-tests:
|
2023-11-24 17:17:26 +00:00
|
|
|
name: PHP ${{ matrix.php }}
|
2023-11-20 21:23:20 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-11-23 22:25:07 +00:00
|
|
|
php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 7.0]
|
2023-11-20 20:36:57 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
2024-03-04 15:40:24 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-20 20:36:57 +00:00
|
|
|
- name: Set up PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
2023-11-20 21:23:20 +00:00
|
|
|
php-version: ${{ matrix.php }}
|
2023-11-20 20:36:57 +00:00
|
|
|
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
|
2024-04-01 16:16:16 +00:00
|
|
|
run: php yellow.php skip installation
|
2023-11-20 20:36:57 +00:00
|
|
|
- name: Run tests
|
2023-11-20 21:23:20 +00:00
|
|
|
run: php yellow.php generate tests
|