Skip to content

Commit 592033d

Browse files
authored
Merge pull request #2 from designcise/4.x
feat: php version bump to 8.2
2 parents d461eef + 1493612 commit 592033d

19 files changed

+2941
-61
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
/.gitattributes export-ignore
55
/.gitignore export-ignore
6-
/.travis.yml export-ignore
76
/phpunit.xml export-ignore
87
/phpstan.neon export-ignore
9-
/test export-ignore
8+
/test export-ignore

.github/scripts/run-phpunit.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
composer test-report

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build-test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Setup PHP
12+
uses: shivammathur/setup-php@v2
13+
with:
14+
php-version: "8.2"
15+
- name: Install dependencies
16+
uses: php-actions/composer@v6
17+
with:
18+
version: 2.5.5
19+
20+
- name: Test & Coverage
21+
uses: paambaati/[email protected]
22+
env:
23+
CC_TEST_REPORTER_ID: 883164b4d8f22828ffd8a87de792fc5a66e2e3d6adb4f1a684f2a9603373795d
24+
with:
25+
coverageCommand: ./.github/scripts/run-phpunit.sh
26+
coverageLocations: coverage.xml:clover
27+
debug: true
28+
29+
- name: Clean up GitHub workspace
30+
uses: docker://ubuntu:latest
31+
with:
32+
args: find /github/workspace/. -name . -o -prune -exec rm -rf -- {} +

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
/.idea
33
.DS_Store
44
*.cache
5-
composer.lock

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# BitFrame\Renderer
22

3-
[![codecov](https://codecov.io/gh/designcise/bitframe-renderer/branch/master/graph/badge.svg)](https://codecov.io/gh/designcise/bitframe-renderer)
4-
[![Build Status](https://travis-ci.com/designcise/bitframe-renderer.svg?branch=master)](https://travis-ci.com/designcise/bitframe-renderer)
3+
[![CI](https://github.com/designcise/bitframe-renderer/actions/workflows/ci.yml/badge.svg)](https://github.com/designcise/bitframe-renderer/actions/workflows/ci.yml)
4+
[![Maintainability](https://api.codeclimate.com/v1/badges/d5c3dc2fadc44ffea89c/maintainability)](https://codeclimate.com/github/designcise/bitframe-renderer/maintainability)
5+
[![Test Coverage](https://api.codeclimate.com/v1/badges/d5c3dc2fadc44ffea89c/test_coverage)](https://codeclimate.com/github/designcise/bitframe-renderer/test_coverage)
56

67
Simple PHP-based templating engine.
78

@@ -13,7 +14,7 @@ Install using composer:
1314
$ composer require designcise/bitframe-renderer
1415
```
1516

16-
Please note that this package requires PHP 8.0 or newer.
17+
Please note that this package requires PHP 8.2 or newer.
1718

1819
## Usage Example
1920

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=8.0"
13+
"php": ">=8.2"
1414
},
1515
"require-dev": {
1616
"phpunit/phpunit": "^9.5",
@@ -23,7 +23,8 @@
2323
"style-fix": "vendor/bin/phpcbf --standard=PSR12 src",
2424
"check": "vendor/bin/phpstan analyse src --level=5 -c phpstan.neon",
2525
"md": "vendor/bin/phpmd src text cleancode,unusedcode,codesize,design,naming",
26-
"test": "vendor/bin/phpunit --configuration phpunit.xml --testsuite bitframe_renderer"
26+
"test": "vendor/bin/phpunit --configuration phpunit.xml --testsuite bitframe_renderer",
27+
"test-report": "vendor/bin/phpunit --configuration phpunit.xml --testsuite bitframe_renderer --coverage-clover=coverage.xml"
2728
},
2829
"autoload": {
2930
"psr-4": {

0 commit comments

Comments
 (0)