Skip to content

Commit

Permalink
Use github workflows instead of travis cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Machy8 committed Dec 26, 2021
1 parent 5a04fc1 commit 67d7674
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 24 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests

on: [push, pull_request]

jobs:
tests:
name: Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install packages
run: composer install --no-interaction

- name: CS Check
run: composer cs:check

- name: PHPstan check
run: composer phpstan:check

- name: Unit Tests
run: composer tester:check

# - name: Coveralls
# uses: coverallsapp/[email protected]
# with:
# github-token: ${{ secrets.COVERALLS_TOKEN }}
# path-to-lcov: 'lcov.info'
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ vendor/
/tests/nette-tester/output/
composer.lock
docker-compose.yml
coverage.xml
lcov.info
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"cs:check": "vendor/bin/ecs check src -c tests/coding-standard/ecs.php",
"cs:fix": "vendor/bin/ecs check src -c tests/coding-standard/ecs.php",
"phpstan:check": "phpstan analyse -c tests/phpstan/phpstan.neon -l 5 src tests/nette-tester",
"tester:check": "tester -p phpdbg tests/nette-tester -s --coverage ./coverage.xml --coverage-src ./src"
"tester:check": "tester -p phpdbg tests/nette-tester -s --coverage ./lcov.info --coverage-src ./src"
},
"minimum-stability": "dev",
"prefer-stable" : true
Expand Down

0 comments on commit 67d7674

Please sign in to comment.