Skip to content

Commit f790982

Browse files
committed
Add GitHub action support
Add Github Actions to RTLCSS for PHP, using the recommended configuration. Fixes #3.
1 parent fe451f0 commit f790982

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
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

0 commit comments

Comments
 (0)