Skip to content
Merged
Show file tree
Hide file tree
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
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false # Allow all matrix jobs to complete even if one fails, like Travis `fast_finish: true` (inverted logic here)
matrix:
php-versions: ['8.2', '8.3', '8.4']
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring
coverage: xdebug

- name: Cache Composer global cache
uses: actions/cache@v4
with:
path: ~/.composer/cache # Cache the global composer cache directory
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install Composer dependencies
run: composer install --no-interaction

- name: Run style checks
run: composer check-style

- name: Run tests
run: composer tests
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,20 +180,20 @@ or call PHPUnit directly

$ ./vendor/bin/phpunit -c ./phpunit.xml.dist

There are automated PR checks enabled on TravisCI (https://travis-ci.org/sugarcrm/Tidbit)
There are automated PR checks enabled using GitHub Actions.
For each PR code-style and phpunit tests will be executed for verification

[Master image]: https://api.travis-ci.org/sugarcrm/Tidbit.svg?branch=master
[Master image]: https://github.com/sugarcrm/Tidbit/actions/workflows/ci.yml/badge.svg?branch=master

[Master]: https://travis-ci.org/sugarcrm/Tidbit
[Master]: https://github.com/sugarcrm/Tidbit/actions/workflows/ci.yml?query=branch%3Amaster

[Master coverage image]: https://coveralls.io/repos/github/sugarcrm/Tidbit/badge.svg?branch=master

[Master coverage]: https://coveralls.io/github/sugarcrm/Tidbit?branch=master

[Develop image]: https://api.travis-ci.org/sugarcrm/Tidbit.svg?branch=develop
[Develop image]: https://github.com/sugarcrm/Tidbit/actions/workflows/ci.yml/badge.svg?branch=develop

[Develop]: https://github.com/sugarcrm/Tidbit/tree/develop
[Develop]: https://github.com/sugarcrm/Tidbit/actions/workflows/ci.yml?query=branch%3Adevelop

[Develop coverage image]: https://coveralls.io/repos/github/sugarcrm/Tidbit/badge.svg?branch=develop

Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
"issues": "https://github.com/sugarcrm/tidbit/issues"
},
"require": {
"php": ">=7.0"
"php": ">=8.2"
},
"require-dev": {
"phpunit/phpunit": "9.5",
"squizlabs/php_codesniffer": "2.8.1"
"phpunit/phpunit": "^11.0",
"squizlabs/php_codesniffer": "^3.0",
"rector/rector": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading