Skip to content

Commit 580a07e

Browse files
committed
Use Github Actions
1 parent 0692961 commit 580a07e

File tree

5 files changed

+31
-102
lines changed

5 files changed

+31
-102
lines changed

.gitattributes

-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
.editorconfig export-ignore
55
.gitattributes export-ignore
66
.gitignore export-ignore
7-
.travis.yml export-ignore
87
CHANGELOG.md export-ignore
98
CONTRIBUTING.md export-ignore
109
LICENSE export-ignore
@@ -13,4 +12,3 @@ README.md export-ignore
1312
tests/ export-ignore
1413
box.json.dist export-ignore
1514
build/ export-ignore
16-
appveyor.yml export-ignore

.github/workflows/ci.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
tests:
7+
runs-on: ${{ matrix.operating-system }}
8+
strategy:
9+
matrix:
10+
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
11+
php-version: ['7.1', '7.2', '7.3', '7.4', 8.0']
12+
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }}
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Cache dependencies
17+
uses: actions/cache@v1
18+
with:
19+
path: ~/.composer/cache/files
20+
key: dependencies-composer-${{ hashFiles('composer.json') }}
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php-version }}
25+
tools: composer:v2
26+
- name: Install Composer dependencies
27+
run: composer install --prefer-dist --no-interaction --no-suggest
28+
- name: Execute tests
29+
run: vendor/bin/phpunit --verbose

.travis.yml

-45
This file was deleted.

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/povils/phpmnd/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/povils/phpmnd/?branch=master)
44
[![License](https://poser.pugx.org/povils/phpmnd/license)](https://packagist.org/packages/povils/phpmnd)
5-
[![Build Status](https://travis-ci.org/povils/phpmnd.svg?branch=master)](https://travis-ci.org/povils/phpmnd)
6-
[![Build Status](https://ci.appveyor.com/api/projects/status/github/povils/phpmnd?svg=true)](https://ci.appveyor.com/project/povils/phpmnd)
5+
[![CI](https://github.com/povils/phpmnd/workflows/CI/badge.svg?branch=master)](https://github.com/povils/phpmnd)
76

87
`phpmnd` is a tool that aims to **help** you to detect magic numbers in your PHP code. By default 0 and 1 are not considered to be magic numbers.
98

@@ -77,7 +76,7 @@ $ export PATH="$PATH:$HOME/.composer/vendor/bin"
7776

7877
## Usage Example
7978

80-
Demo:
79+
Demo:
8180
![demo](./demo.gif)
8281

8382
Basic usage:

appveyor.yml

-52
This file was deleted.

0 commit comments

Comments
 (0)