Skip to content

Commit d69275e

Browse files
authored
Merge pull request #21 from chadicus/master
Switch to Github Actions for build
2 parents b09b85d + 3e771cd commit d69275e

File tree

5 files changed

+34
-22
lines changed

5 files changed

+34
-22
lines changed

.coveralls.yml

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

.github/workflows/php.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: PHP Composer
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
matrix:
14+
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Install PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php-versions }}
22+
- name: Validate composer.json and composer.lock
23+
run: composer validate
24+
- name: Install dependencies
25+
run: composer install --prefer-dist --no-progress
26+
- name: Run PHPCS
27+
run: composer run-script lint
28+
- name: Run PHPUnit
29+
run: composer run-script test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/coverage/
22
/vendor/
33
/clover.xml
4+
.*
45
composer.lock
56
phpunit.xml

.travis.yml

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

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"guzzlehttp/guzzle": "^6.3"
2020
},
2121
"require-dev": {
22-
"php-coveralls/php-coveralls": "^1.0",
2322
"phpunit/phpunit": "^6.0",
2423
"squizlabs/php_codesniffer": "^3.2"
2524
},
@@ -28,5 +27,9 @@
2827
},
2928
"autoload-dev": {
3029
"psr-4": { "TraderInteractive\\NetAcuity\\Tests\\": "tests" }
30+
},
31+
"scripts": {
32+
"lint": "vendor/bin/phpcs",
33+
"test": "vendor/bin/phpunit"
3134
}
3235
}

0 commit comments

Comments
 (0)