Skip to content

Commit 6eff199

Browse files
authored
Merge pull request #14 from PHPCompatibility/feature/move-to-gh-actions
CI: switch to GitHub Actions
2 parents 7e89db6 + 4b3f996 commit 6eff199

File tree

4 files changed

+37
-27
lines changed

4 files changed

+37
-27
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#
55
/.gitattributes export-ignore
66
/.gitignore export-ignore
7-
/.travis.yml export-ignore
87
/.github export-ignore
98

109
#

.github/workflows/validate.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Validate
2+
3+
on:
4+
# Run on all pushes and pull requests.
5+
push:
6+
pull_request:
7+
# Also run this workflow on day 15 of every month as the repo isn't that active.
8+
schedule:
9+
- cron: '0 0 15 * *'
10+
11+
jobs:
12+
validate:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: true
17+
matrix:
18+
php: ['5.4', 'latest']
19+
20+
name: PHP ${{ matrix.php }}
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v2
25+
26+
- name: Install PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php }}
30+
coverage: none
31+
32+
- name: Install dependencies
33+
run: composer update --no-interaction --no-progress
34+
35+
- name: Validate Composer installation
36+
run: composer validate --no-check-all --strict

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![License](https://poser.pugx.org/PHPCompatibility/phpcompatibility-all/license.png)](https://github.com/PHPCompatibility/PHPCompatibilityAll/blob/master/LICENSE)
2-
[![Build Status](https://travis-ci.org/PHPCompatibility/PHPCompatibilityAll.svg?branch=master)](https://travis-ci.org/PHPCompatibility/PHPCompatibilityAll)
2+
[![Build Status](https://github.com/PHPCompatibility/PHPCompatibilityAll/workflows/Validate/badge.svg?branch=master)](https://github.com/PHPCompatibility/PHPCompatibilityAll/actions)
33

44
# PHPCompatibilityAll
55

0 commit comments

Comments
 (0)