Compatibility php 81 #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: techdivision/import-cli | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
run: | |
name: Build ${{ matrix.operating-system }} > ${{ matrix.php-versions }} | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-latest, macos-latest ] | |
php-versions: [ '7.3', '7.4' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: zip, xdebug-2.9.8 | |
- name: Validate Composer Files | |
run: composer validate | |
- name: Install Dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run Robo Build | |
run: vendor/bin/robo build | |
- name: Download Scrutinizer-CI Binary | |
run: wget https://scrutinizer-ci.com/ocular.phar | |
- name: Post Coverage Data to Scrutinizer-CI | |
run: php ocular.phar code-coverage:upload --format=php-clover target/reports/unit/clover.xml |