mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-11-11 21:08:45 +00:00
wip
This commit is contained in:
parent
6aeeb5b2c4
commit
279fcf2a8f
1 changed files with 54 additions and 0 deletions
54
.github/workflows/ci.yml
vendored
Normal file
54
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
---
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
php-version:
|
||||
- '5.6'
|
||||
- '7.0'
|
||||
- '7.1'
|
||||
- '7.2'
|
||||
dependencies:
|
||||
- lowest
|
||||
- locked
|
||||
- highest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.composer/cache/files
|
||||
key: dependencies-composer-${{ hashFiles('composer.json') }}
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.4
|
||||
extensions: mbstring
|
||||
coverage: none
|
||||
|
||||
- name: "Install lowest dependencies from composer.json"
|
||||
if: "matrix.dependencies == 'lowest'"
|
||||
run: "composer update --no-interaction --no-progress --no-suggest --prefer-lowest"
|
||||
|
||||
- name: "Install locked dependencies from composer.lock"
|
||||
if: "matrix.dependencies == 'locked'"
|
||||
run: "composer install --no-interaction --no-progress --no-suggest"
|
||||
|
||||
- name: "Install highest dependencies from composer.json"
|
||||
if: "matrix.dependencies == 'highest'"
|
||||
run: "composer update --no-interaction --no-progress --no-suggest"
|
||||
|
||||
- name: Run the tests
|
||||
run: vendor/bin/phpunit --colors=always --testdox
|
||||
Loading…
Add table
Add a link
Reference in a new issue