Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add matrix tests #188

Merged
merged 1 commit into from
Apr 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test Suite (Matrix)

# @todo download the actual branch from the PR that triggered it instead of requring hyde/framework:dev-master
on:
push:
branches: [ master ]
Expand All @@ -22,10 +22,37 @@ jobs:
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Set Framework version to dev-master
run: composer require hyde/framework:dev-master # @todo download the actual branch from the PR that triggered it
run: composer require hyde/framework:dev-master
- name: Set environment to testing
run: echo "ENV=testing" > .env
- name: Run tests with output coverage reporting
run: vendor/bin/pest --coverage
env:
ENV: testing


hyde-tests:
needs: coverage
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.0'
extensions: fileinfo
- name: Install Hyde
run: git clone https://github.com/hydephp/hyde.git $(pwd)
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Set Framework version to dev-master
run: composer require hyde/framework:dev-master
- name: Set environment to testing
run: echo "ENV=testing" > .env
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
run: vendor/bin/pest
env:
ENV: testing