Skip to content

Commit 5781d23

Browse files
bensherredShawnCZek
authored andcommitted
Added GitHub Actions Support (#13)
* Added GitHub actions config * Removed Travis CI config file
1 parent 0366825 commit 5781d23

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.github/workflows/run-tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Run Tests"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- name: Validate composer.json and composer.lock
14+
run: composer validate
15+
16+
- name: Install dependencies
17+
run: composer install --prefer-dist --no-progress --no-suggest
18+
19+
- name: Run test suite
20+
run: vendor/bin/phpunit
21+
22+
- name: Run PHPCS tests
23+
run: |
24+
vendor/bin/phpcs src --standard=PSR2
25+
vendor/bin/phpcs tests/Unit --standard=PSR2

.travis.yml

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

0 commit comments

Comments
 (0)