github actions

This commit is contained in:
codemasher
2019-11-15 23:21:06 +01:00
parent 2f4211dc21
commit a38e677fbf
+40
View File
@@ -0,0 +1,40 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
on:
pull_request:
push:
branches:
- master
tags:
- "**"
name: "PHPUnit tests"
jobs:
tests:
name: "Tests"
runs-on: ubuntu-latest
strategy:
matrix:
php-binary:
- php7.2
- php7.3
# - php7.4
steps:
- name: "Checkout"
uses: actions/checkout@v1.1.0
- name: "Install dependencies with composer"
run: ${{ matrix.php-binary }} $(which composer) update --no-interaction --prefer-source --no-progress --no-suggest
- name: "Run unit tests with phpunit/phpunit"
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration phpunit.xml --coverage-clover clover.xml
# - name: "Send code coverage report to Codecov.io"
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# run: bash <(curl -s https://codecov.io/bash)