Skip to content

Commit 891a480

Browse files
authored
chore(ci): Use GitHub Actions instead of Travis (#7)
* chore(ci): Use GitHub Actions instead of Travis * fix(ci): Remove ini-values and simplexml extension * fix(ci): Run also on push to major version branches
1 parent ba52809 commit 891a480

File tree

5 files changed

+43
-12
lines changed

5 files changed

+43
-12
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- v*.x
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
php-versions: ['7.3', '7.4', '8']
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Setup PHP ${{ matrix.php-versions }}
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: ${{ matrix.php-versions }}
23+
extensions: gd
24+
coverage: none
25+
26+
- name: Cache Composer packages
27+
id: composer-cache
28+
uses: actions/cache@v2
29+
with:
30+
path: vendor
31+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-php-
34+
35+
- name: Install dependencies
36+
run: composer install --prefer-dist --no-progress
37+
38+
- name: Run test suite
39+
run: vendor/bin/phpunit

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1+
.DS_Store
12
vendor/
23
.idea
34
.phpunit.result.cache
4-
composer.lock
5+
composer.lock

.travis.yml

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Fabian Meyer
3+
Copyright (c) 2018 - 2022 Fabian Meyer
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AssertGD for PHPUnit
22

3-
[![Build Status](https://travis-ci.com/meyfa/phpunit-assert-gd.svg?branch=master)](https://travis-ci.com/meyfa/phpunit-assert-gd)
3+
[![CI](https://github.com/meyfa/phpunit-assert-gd/actions/workflows/main.yml/badge.svg)](https://github.com/meyfa/phpunit-assert-gd/actions/workflows/main.yml)
44

55
Trying to assert images with PHPUnit? This project provides a constraint and the
66
required assertions that allow you do to so.

0 commit comments

Comments
 (0)