Skip to content

Commit

Permalink
Merge 8eba921 into 977361c
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed May 20, 2021
2 parents 977361c + 8eba921 commit fda0ea3
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 20 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Test
on:
- push
- pull_request

jobs:
test:
name: Run tests
runs-on: 'ubuntu-20.04'
env:
PRIVATE_REPO_GITHUB: ${{ secrets.PRIVATE_REPO_GITHUB }}
PRIVATE_USER_TOKEN_GITHUB: ${{ secrets.PRIVATE_USER_TOKEN_GITHUB }}
strategy:
fail-fast: false
matrix:
php-version:
- "7.0"
- "7.1"
- "7.2"
- "7.3"
- "7.4"
composer-version:
- "1"
- "2"
steps:
- name: Dump matrix context
env:
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
run: echo "$MATRIX_CONTEXT"

- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Update composer
run: composer --verbose self-update --${{ matrix.composer-version }}

- name: Dump composer verson
run: composer --version

- name: Validate composer.json
run: composer --verbose validate

- name: Install dependencies
run: composer --verbose install

- name: Install some different dependencies if version is not php 7.0
if: matrix.php-version != 7.0
run: |
composer require --dev phpstan/phpstan bitbucket/client:^2 cweagans/composer-patches
rm -rf vendor/phpunit
composer install
- name: Run tests
run: composer test

- name: Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
php vendor/bin/php-coveralls -v
- name: Run phpstan
if: matrix.php-version != 7.0
run: composer phpstan
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit fda0ea3

Please sign in to comment.