Skip to content

Commit

Permalink
feat: laravel 9 only support (#5)
Browse files Browse the repository at this point in the history
* ci: github actions instead of travis

* style: import classes

* chore: update composer.lock

* style: increment style post to match styleci

---------

Co-authored-by: Audun Rundberg <[email protected]>
  • Loading branch information
audunru and audunrunhn authored Jul 18, 2023
1 parent e3cef24 commit b58732c
Show file tree
Hide file tree
Showing 10 changed files with 1,106 additions and 789 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Status

on:
pull_request:
branches: [master]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Validate Pull Request Title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Validate commit messages
uses: wagoid/commitlint-github-action@v5

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
# Taken from https://github.com/kirschbaum-development/laravel-test-runner-container/blob/master/8.1/Dockerfile
extensions: mbstring, mysql, xml, xsl, zip, curl, bcmath, intl, bz2

- name: Install composer dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Validate PHP code
run: composer verify

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
6 changes: 6 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
'not_operator_with_successor_space' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'increment_style' => ['style' => 'post'],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => null,
'import_functions' => null,
],
])
->setFinder($finder);

Expand Down
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Log Laravel Memory usage

[![Build Status](https://app.travis-ci.com/audunru/memory-usage.svg?branch=master)](https://app.travis-ci.com/audunru/memory-usage)
[![Build Status](https://github.com/audunru/memory-usage/actions/workflows/validate.yml/badge.svg)](https://github.com/audunru/memory-usage/actions/workflows/validate.yml)
[![Coverage Status](https://coveralls.io/repos/github/audunru/memory-usage/badge.svg?branch=master)](https://coveralls.io/github/audunru/memory-usage?branch=master)
[![StyleCI](https://github.styleci.io/repos/448512424/shield?branch=master)](https://github.styleci.io/repos/448512424)

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
],
"require": {
"php": "^8.0",
"laravel/framework": "^6.0|^7.0|^8.0|^9.0",
"laravel/framework": "^9.0",
"spatie/laravel-package-tools": "^1.9"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"orchestra/testbench": "^4.0|^5.0|^6.7|^7.0",
"orchestra/testbench": "^7.0",
"php-coveralls/php-coveralls": "^2.2",
"phpmd/phpmd": "^2.10",
"phpunit/phpunit": "^8.5|^9.0",
Expand Down
Loading

0 comments on commit b58732c

Please sign in to comment.