Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI problems #11

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
34 changes: 18 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,51 @@ on:
pull_request:
push:
branches:
- "master"
- "main"

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.4', '8.0']
php-version: ['7.4', '8.0']
composer-prefer-lowest: [false]
include:
- operating-system: 'ubuntu-latest'
php-versions: '7.4'
php-version: '7.4'
composer-prefer-lowest: true

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Configure PHP
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: xdebug
#coverage: xdebug

- name: Checkout repo
uses: actions/checkout@v2

- name: Install PHIVE
uses: szepeviktor/phive@v1
with:
home: "${{ runner.temp }}/.phive"
binPath: "${{ github.workspace }}/tools/phive"

- name: Start PHIVE manually
run: "${{ github.workspace }}/tools/phive --no-progress install --trust-gpg-keys 4AA394086372C20A,31C7E470E2138192,CF1A108D0E7AE720"

- name: Install Composer dependencies
run: composer install
if: matrix.composer-prefer-lowest == false
run: composer update

- name: Install lowest CaptainHookPHP version
- name: Install lowest Composer dependencies
if: matrix.composer-prefer-lowest == true
run: |
composer install
composer update --prefer-lowest
run: composer update --prefer-lowest

- name: Codesniffer
run: composer cs-check
run: composer run-script cs-check

- name: Static code analysis
run: composer analyze
run: composer run-script analyze
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Composer-PHIVE Bridge

[![Build Status](https://github.com/bitExpert/composer-phive-bridge/workflows/ci/badge.svg?branch=master)](https://github.com/bitExpert/composer-phive-bridge/actions)
[![Build Status](https://github.com/bitExpert/composer-phive-bridge/workflows/ci/badge.svg?branch=main)](https://github.com/bitExpert/composer-phive-bridge/actions)

Update the phive toolset on `composer update`

Expand Down