Skip to content

Commit

Permalink
Merge pull request #188 from hydephp/move-test-suite-actions-to-frame…
Browse files Browse the repository at this point in the history
…work

Add matrix tests
  • Loading branch information
caendesilva authored Apr 28, 2022
2 parents a4dba1c + c37af74 commit 3b75f18
Showing 1 changed file with 29 additions and 2 deletions.
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

0 comments on commit 3b75f18

Please sign in to comment.