Skip to content

Commit

Permalink
Merge pull request #6 from sarjona/upgradephpversion
Browse files Browse the repository at this point in the history
Bump PHP version and add support to GitHub Actions
  • Loading branch information
stronk7 authored Jan 24, 2022
2 parents f4d61fe + f790982 commit e251ac7
Show file tree
Hide file tree
Showing 5 changed files with 1,179 additions and 348 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: RTLCSS for PHP CI

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-18.04

strategy:
fail-fast: false
matrix:
php: ['7.3', '7.4', '8.0']

steps:
- name: Check out repository code
uses: actions/checkout@v2

- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Run composer
uses: php-actions/composer@v6

- name: PHPUnit tests
run:
vendor/bin/phpunit
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
RTLCSS for PHP
--------------

[![Codechecker CI](https://github.com/moodlehq/rtlcss-php/actions/workflows/ci.yml/badge.svg)](https://github.com/moodlehq/rtlcss-php/actions/workflows/ci.yml)

RTLCSS is a framework for converting Left-To-Right (LTR) Cascading Style Sheets(CSS) to Right-To-Left (RTL).

## Usage
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"license": "MIT",
"minimum-stability": "dev",
"require": {
"php": ">=5.4",
"sabberworm/php-css-parser": "*"
"php": ">=7.3.0",
"sabberworm/php-css-parser": "8.1.*"
},
"require-dev": {
"phpunit/phpunit": "*"
"phpunit/phpunit": "9.5.*"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit e251ac7

Please sign in to comment.