Skip to content

Commit 03687eb

Browse files
authored
Merge pull request #27 from alexsoft/github-actions
Added GitHub Actions workflow, removed travis
2 parents 35af3a7 + bfc9c14 commit 03687eb

File tree

4 files changed

+53
-34
lines changed

4 files changed

+53
-34
lines changed

.coveralls.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
service_name: travis-ci
1+
service_name: github
22
coverage_clover: build/logs/clover.xml
3-
json_path: build/logs/coveralls-upload.json
3+
json_path: build/logs/coveralls-upload.json

.github/workflows/tests.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: PHPUnit tests
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
11+
name: Tests on PHP 7.4
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: 7.4
21+
tools: composer:v2
22+
coverage: pcov
23+
24+
- name: Install dependencies
25+
run: composer install --no-interaction --prefer-dist
26+
27+
- name: Code style fixer
28+
run: vendor/bin/php-cs-fixer fix . --dry-run --diff
29+
30+
- name: PHPStan
31+
run: vendor/bin/phpstan analyse
32+
33+
- name: Run tests
34+
run: vendor/bin/phpunit
35+
36+
- name: Coveralls
37+
env:
38+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
run: php vendor/bin/php-coveralls -v

.travis.yml

-20
This file was deleted.

composer.lock

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)