Skip to content

Commit

Permalink
Merge pull request #10 from intonate/feature/github-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions instead of Travis CI
  • Loading branch information
scrubmx authored Apr 25, 2024
2 parents c1df5f7 + e5bf68e commit 446b45c
Show file tree
Hide file tree
Showing 9 changed files with 98 additions and 42 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ trim_trailing_whitespace = false

[*.yml]
indent_size = 2
indent_style = space
45 changes: 45 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: PHPUnit

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
ci:
runs-on: ubuntu-22.04

strategy:
fail-fast: true
matrix:
php: ['7.2.5', '7.3', '7.4', '8.0', '8.1', 8.2', '8.3']

name: PHP ${{ matrix.php }}

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

- name: Install Composer Dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 2
max_attempts: 4
command: composer update --no-interaction --no-progress --ansi

- name: Run Tests
run: vendor/bin/phpunit
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
vendor/
/.idea
/.vscode
/vendor
*.bak
.phpunit.cache
.phpunit.result.cache
composer.lock
7 changes: 0 additions & 7 deletions .scrutinizer.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

File renamed without changes.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Tinker Zero

[![TravisCI](https://img.shields.io/travis/intonate/tinker-zero/master.svg?style=flat-square)](https://travis-ci.org/intonate/tinker-zero)
[![StyleCI](https://styleci.io/repos/110322700/shield)](https://styleci.io/repos/110322700)
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/intonate/tinker-zero/blob/master/LICENSE)
<p align="center"><img src="/logo.svg" title="Tinker Zero" alt="Logo Tinker Zero"></p>

<p align="center">
<a href="https://github.com/intonate/tinker-zero/actions/workflows/phpunit.yml?query=workflow:PHPUnit"><img src="https://github.com/intonate/tinker-zero/workflows/PHPUnit/badge.svg" alt="PHPUnit" /></a>
<a href="https://styleci.io/repos/110322700"><img src="https://github.styleci.io/repos/110322700/shield?style=flat" alt="StyleCI" /></a>
<a href="https://packagist.org/packages/intonate/tinker-zero"><img src="https://img.shields.io/packagist/dt/intonate/tinker-zero.svg" alt="Total Downloads" /></a>
<a href="https://packagist.org/packages/intonate/tinker-zero"><img src="https://img.shields.io/packagist/v/intonate/tinker-zero.svg?label=stable" alt="Latest Stable Version" /></a>
<a href="https://packagist.org/packages/intonate/tinker-zero"><img src="https://img.shields.io/packagist/l/intonate/tinker-zero.svg" alt="License" /></a>
</p>

This is a *community project* and not an official Laravel or Laravel Zero package

Expand Down
16 changes: 13 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{
"name": "intonate/tinker-zero",
"description": "Use laravel/tinker on your laravel-zero applications",
"keywords": ["tinker", "tinker-zero", "repl", "psysh", "laravel", "laravel-zero"],
"type": "library",
"keywords": [
"cli",
"console",
"laravel",
"laravel-zero",
"psysh",
"repl",
"tinker",
"tinker-zero"
],
"license": "MIT",
"homepage": "https://github.com/laravel/tinker#readme",
"support": {
Expand All @@ -19,8 +29,8 @@
"laravel/tinker": "^1.0|^2.0"
},
"require-dev": {
"orchestra/testbench": "^4.0",
"phpunit/phpunit": "^8.4"
"orchestra/testbench": "^5.0|^7.0",
"phpunit/phpunit": "^8.5.23|^9.5"
},
"autoload": {
"psr-4": {
Expand Down
25 changes: 25 additions & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 446b45c

Please sign in to comment.