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

feat: Tests workflow #24

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Tests"

on: [pull_request]
2002Bishwajeet marked this conversation as resolved.
Show resolved Hide resolved


jobs:
test:
name: "Unit & E2E Test"
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0','nightly']
2002Bishwajeet marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup PHP Action
uses: shivammathur/setup-php@2.25.5
2002Bishwajeet marked this conversation as resolved.
Show resolved Hide resolved
with:
php-version: ${{matrix.php-versions}}
- name: Install dependencies
run: composer install --ignore-platform-reqs
- name: Analyse code
run: composer analyse
- name: Run Tests
run: composer test
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
},
"scripts": {
"lint": "./vendor/bin/pint --test",
"format": "./vendor/bin/pint"
"format": "./vendor/bin/pint",
"test": "vendor/bin/phpunit --configuration phpunit.xml --testsuite General",
"analyse": "vendor/bin/psalm --show-info=true"
},
"require": {
"php": ">=8.0.0",
Expand Down