Skip to content

Commit

Permalink
Create tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
accgit committed Sep 24, 2021
1 parent f817f14 commit 01dfa7e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests

on: [push, pull_request]

env:
php-extensions: iconv, json, mbstring, xml, gd, intl, tokenizer, mysqli
php-tools: "composer:v2"

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0']

fail-fast: false

name: PHP ${{ matrix.php }} tests

steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.php-extensions }}
tools: ${{ env.php-tools }}
coverage: none

- run: composer install --no-progress --prefer-dist
- run: vendor/bin/tester -p phpdbg tests -s -C --coverage ./coverage.xml --coverage-src ./src
- run: wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
- env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: php php-coveralls.phar --verbose --config tests/.coveralls.yml

0 comments on commit 01dfa7e

Please sign in to comment.