Skip to content

Commit e251ac7

Browse files
authored
Merge pull request #6 from sarjona/upgradephpversion
Bump PHP version and add support to GitHub Actions
2 parents f4d61fe + f790982 commit e251ac7

File tree

5 files changed

+1179
-348
lines changed

5 files changed

+1179
-348
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: RTLCSS for PHP CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-18.04
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
php: ['7.3', '7.4', '8.0']
13+
14+
steps:
15+
- name: Check out repository code
16+
uses: actions/checkout@v2
17+
18+
- name: Setup PHP ${{ matrix.php }}
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php }}
22+
coverage: none
23+
24+
- name: Run composer
25+
uses: php-actions/composer@v6
26+
27+
- name: PHPUnit tests
28+
run:
29+
vendor/bin/phpunit

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
RTLCSS for PHP
22
--------------
33

4+
[![Codechecker CI](https://github.com/moodlehq/rtlcss-php/actions/workflows/ci.yml/badge.svg)](https://github.com/moodlehq/rtlcss-php/actions/workflows/ci.yml)
5+
46
RTLCSS is a framework for converting Left-To-Right (LTR) Cascading Style Sheets(CSS) to Right-To-Left (RTL).
57

68
## Usage

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"license": "MIT",
77
"minimum-stability": "dev",
88
"require": {
9-
"php": ">=5.4",
10-
"sabberworm/php-css-parser": "*"
9+
"php": ">=7.3.0",
10+
"sabberworm/php-css-parser": "8.1.*"
1111
},
1212
"require-dev": {
13-
"phpunit/phpunit": "*"
13+
"phpunit/phpunit": "9.5.*"
1414
},
1515
"autoload": {
1616
"psr-4": {

0 commit comments

Comments
 (0)