Skip to content

Commit 3abd678

Browse files
authored
Merge pull request #82 from simPod/ci
Add GA CI
2 parents 56e0f7c + 9b9e33a commit 3abd678

File tree

5 files changed

+70
-36
lines changed

5 files changed

+70
-36
lines changed

.gitattributes

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1+
/.github export-ignore
12
/.gitattributes export-ignore
23
/.gitignore export-ignore
3-
/.travis.yml export-ignore
4-
/.scrutinizer.yml export-ignore
54
/phpunit.xml export-ignore

.github/workflows/ci.yaml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: "CI"
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "master"
8+
schedule:
9+
- cron: "42 3 * * *"
10+
11+
jobs:
12+
phpunit:
13+
name: "PHPUnit"
14+
runs-on: "ubuntu-20.04"
15+
16+
strategy:
17+
matrix:
18+
php-version:
19+
- "7.1"
20+
- "7.2"
21+
- "7.3"
22+
- "7.4"
23+
- "8.0"
24+
dependencies:
25+
- "highest"
26+
27+
steps:
28+
- name: "Checkout"
29+
uses: "actions/checkout@v2"
30+
with:
31+
fetch-depth: 2
32+
33+
- name: "Install PHP"
34+
uses: "shivammathur/setup-php@v2"
35+
with:
36+
php-version: "${{ matrix.php-version }}"
37+
coverage: "pcov"
38+
ini-values: "zend.assertions=1"
39+
40+
- name: "Install dependencies with Composer"
41+
uses: "ramsey/composer-install@v1"
42+
with:
43+
dependency-versions: "${{ matrix.dependencies }}"
44+
45+
- name: "Run PHPUnit"
46+
run: "vendor/bin/phpunit"
47+
48+
upload_coverage:
49+
name: "Upload coverage to Codecov"
50+
runs-on: "ubuntu-20.04"
51+
needs:
52+
- "phpunit"
53+
54+
steps:
55+
- name: "Checkout"
56+
uses: "actions/checkout@v2"
57+
with:
58+
fetch-depth: 2
59+
60+
- name: "Download coverage files"
61+
uses: "actions/download-artifact@v2"
62+
with:
63+
path: "reports"
64+
65+
- name: "Upload to Codecov"
66+
uses: "codecov/codecov-action@v1"
67+
with:
68+
directory: reports

.scrutinizer.yml

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

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Data Structures for PHP 7
22

3-
[![Build Status](https://travis-ci.org/php-ds/polyfill.svg?branch=master)](https://travis-ci.org/php-ds/polyfill)
3+
[![Build Status](https://github.com/php-ds/polyfill/workflows/CI/badge.svg)](https://github.com/php-ds/polyfill/actions?query=workflow%3A%22CI%22+branch%3Amaster)
44
[![Packagist](https://img.shields.io/packagist/v/php-ds/php-ds.svg)](https://packagist.org/packages/php-ds/php-ds)
55

66
This is a compatibility polyfill for the [extension](https://github.com/php-ds/extension). You should include this package as a dependency of your project

0 commit comments

Comments
 (0)