Skip to content

Commit 2ee292f

Browse files
committed
Move the CI from Travis CI to GitHub Actions
Travis CI has dropped free support for open source projects. To continue having CI builds, we now use GitHub Actions for this.
1 parent cd1ff11 commit 2ee292f

File tree

4 files changed

+58
-24
lines changed

4 files changed

+58
-24
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/.gitattributes export-ignore
2+
/.github/ export-ignore
23
/.gitignore export-ignore
3-
/.travis.yml export-ignore
44
/Doxyfile export-ignore
55
/phpunit.xml export-ignore
66
/tests export-ignore

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
on:
4+
pull_request:
5+
push:
6+
schedule:
7+
- cron: '3 3 * * 1'
8+
9+
name: CI
10+
11+
jobs:
12+
unit-tests:
13+
name: Unit tests
14+
15+
runs-on: ubuntu-20.04
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
php-version:
21+
- 5.3
22+
- 5.4
23+
- 5.5
24+
- 5.6
25+
- 7.0
26+
- 7.1
27+
- 7.2
28+
- 7.3
29+
- 7.4
30+
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v2
34+
35+
- name: Install PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php-version }}
39+
tools: composer:v2
40+
coverage: none
41+
42+
- name: Cache dependencies installed with composer
43+
uses: actions/cache@v1
44+
with:
45+
path: ~/.cache/composer
46+
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }}
47+
restore-keys: |
48+
php${{ matrix.php-version }}-composer-
49+
50+
- name: Install Composer dependencies
51+
run: |
52+
composer update --with-dependencies --no-progress;
53+
composer show;
54+
55+
- name: Run Tests
56+
run: ./vendor/bin/phpunit

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PHP CSS Parser
22
--------------
33

4-
[![build status](https://api.travis-ci.org/sabberworm/PHP-CSS-Parser.svg)](https://travis-ci.org/sabberworm/PHP-CSS-Parser)
4+
[![Build Status](https://github.com/sabberworm/PHP-CSS-Parser/workflows/CI/badge.svg?branch=master)](https://github.com/sabberworm/PHP-CSS-Parser/actions/)
55

66
A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS.
77

0 commit comments

Comments
 (0)