Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Commit 1a8f5c3

Browse files
committed
Enhancement: Switch to using GitHub actions
1 parent 5e086da commit 1a8f5c3

File tree

3 files changed

+64
-29
lines changed

3 files changed

+64
-29
lines changed

.github/workflows/continuous-integration.yml

+61-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,68 @@ on:
1212
name: "Continuous Integration"
1313

1414
jobs:
15-
hello:
16-
name: "Hello"
15+
coding-standards:
16+
name: "Coding Standards"
1717

1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- name: "Hello"
22-
run: echo "Hello, François and Pim!"
21+
- name: "Checkout"
22+
uses: actions/[email protected]
23+
24+
- name: "Install PHP with extensions"
25+
uses: shivammathur/[email protected]
26+
with:
27+
php-version: 7.1
28+
extension-csv: "intl"
29+
30+
- name: "Cache dependencies installed with composer"
31+
uses: actions/[email protected]
32+
with:
33+
path: ~/.composer/cache
34+
key: php7.1-composer-${{ hashFiles('**/composer.json') }}
35+
restore-keys: |
36+
php7.1-composer-
37+
38+
- name: "Install dependencies with composer"
39+
run: $(which composer) install --no-interaction --no-progress --no-suggest
40+
41+
- name: "Run squizlabs/php_codesniffer"
42+
run: vendor/bin/phpcs --standard=PSR2 src -n
43+
44+
tests:
45+
name: "Tests"
46+
47+
runs-on: ubuntu-latest
48+
49+
strategy:
50+
matrix:
51+
php-version:
52+
- 7.1
53+
- 7.2
54+
- 7.3
55+
- 7.4
56+
57+
steps:
58+
- name: "Checkout"
59+
uses: actions/[email protected]
60+
61+
- name: "Install PHP with extensions"
62+
uses: shivammathur/[email protected]
63+
with:
64+
php-version: ${{ php-version }}
65+
extension-csv: "intl"
66+
67+
- name: "Cache dependencies installed with composer"
68+
uses: actions/[email protected]
69+
with:
70+
path: ~/.composer/cache
71+
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
72+
restore-keys: |
73+
php${{ matrix.php-version }}-composer-
74+
75+
- name: "Install dependencies with composer"
76+
run: $(which composer) install --no-interaction --no-progress --no-suggest
77+
78+
- name: "Run tests with phpunit/phpunit"
79+
run: vendor/bin/phpunit

.travis.yml

-24
This file was deleted.

readme.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Faker
22

3+
[![Continuous Integration](https://github.com/fzaninotto/Faker/workflows/Continuous%20Integration/badge.svg)](https://github.com/fzaninotto/Faker/actions)
4+
35
Faker is a PHP library that generates fake data for you. Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.
46

57
Faker is heavily inspired by Perl's [Data::Faker](http://search.cpan.org/~jasonk/Data-Faker-0.07/), and by ruby's [Faker](https://rubygems.org/gems/faker).
@@ -53,7 +55,7 @@ composer require fzaninotto/faker
5355

5456
### Autoloading
5557

56-
Faker supports both `PSR-0` as `PSR-4` autoloaders.
58+
Faker supports both `PSR-0` as `PSR-4` autoloaders.
5759
```php
5860
<?php
5961
# When installed via composer

0 commit comments

Comments
 (0)