mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-24 16:07:54 +00:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
|
|
# https://github.com/localheinz/php-library-template/blob/master/.github/workflows/continuous-integration.yml
|
|
# https://github.com/sebastianbergmann/phpunit/blob/master/.github/workflows/ci.yml
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- "**"
|
|
|
|
name: "Continuous Integration"
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
name: "Unit Tests"
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
php-binary:
|
|
- php7.4
|
|
|
|
dependencies:
|
|
- lowest
|
|
- highest
|
|
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v2
|
|
|
|
- name: "Install lowest dependencies with composer"
|
|
if: matrix.dependencies == 'lowest'
|
|
run: ${{ matrix.php-binary }} $(which composer) update --no-interaction --no-progress --no-suggest --prefer-lowest
|
|
|
|
- name: "Install highest dependencies with composer"
|
|
if: matrix.dependencies == 'highest'
|
|
run: ${{ matrix.php-binary }} $(which composer) update --no-interaction --no-progress --no-suggest
|
|
|
|
- name: "Run unit tests with phpunit"
|
|
run: ${{ matrix.php-binary }} vendor/bin/phpunit --configuration=phpunit.xml --no-coverage
|