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

Move part one of the test suite #187

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: 31 additions & 0 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test Suite (Matrix)

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
# First run tests with coverage. If this fails, we don't need to run the matrix.
coverage:
runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.0'
coverage: xdebug
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 # @todo download the actual branch from the PR that triggered it
- 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