Skip to content

Commit

Permalink
chore: 🤖 GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mpyw committed Jun 25, 2021
1 parent fb12bb3 commit 6679f26
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 26 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php: [7.1, 7.2, 7.3, 7.4, 8.0]

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: pcov

- run: composer require phpunit/phpunit --dev --no-update
- run: composer update
- run: mkdir -p build/logs
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

- name: Upload Coverage
uses: nick-invision/retry@v2
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
timeout_minutes: 1
max_attempts: 3
command: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
"ext-openssl": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"php-coveralls/php-coveralls": "^2.2",
"phpunit/phpunit": "^8.5"
},
"scripts": {
}
}

0 comments on commit 6679f26

Please sign in to comment.