Skip to content

Commit

Permalink
😞
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Jan 12, 2021
1 parent 5365ad3 commit 4fcee4a
Showing 1 changed file with 29 additions and 31 deletions.
60 changes: 29 additions & 31 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,46 @@
name: CI
name: "testing"

on: [push]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ${{ matrix.operating-system }}
tests:
name: Tests
runs-on: ubuntu-latest

strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ["7.2", "7.3", "7.4", 8.0"]
env:
tools: composer
name: PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-system }}
php:
- 7.2
- 7.3
- 7.4
composer-args: [ "" ]
include:
- php: 8.0
composer-args: --ignore-platform-reqs
fail-fast: false

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

- name: Setup PHP
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: ${{ env.tools }}
env:
fail-fast: true

- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Validate composer
run: composer validate

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
php-version: ${{ matrix.php }}

- name: Cache dependencies
- name: Cache PHP dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-

- name: Install dependencies
run: composer install
run: composer install --prefer-dist --no-progress --no-suggest ${{ matrix.composer-args }}

- name: Run tests
run: composer test
- name: Tests
run: composer test

1 comment on commit 4fcee4a

@oscarotero
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry! πŸ˜„

Please sign in to comment.