Skip to content

Commit

Permalink
Enable Github Actions - Decom Travis-CI (#1573)
Browse files Browse the repository at this point in the history
* first draft of GH actions
* Drop old unsupported versions of PHP, Symfony
* Update tests for PhpUnit 9.x
* Apply fixes from StyleCI (#1572)
* Remove Travis-CI config
* Remove GH on cron
  • Loading branch information
svpernova09 authored Dec 18, 2020
1 parent 8366455 commit be176af
Show file tree
Hide file tree
Showing 9 changed files with 1,621 additions and 474 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: tests

on:
push:
pull_request:

jobs:
tests:

runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, 8.0]

name: PHP_${{ matrix.php }}

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

- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
coverage: none

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit --verbose
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"name": "laravel/homestead",
"description": "A virtual machine for web artisans.",
"require": {
"php": "^7.1",
"symfony/console": "~3.0||~4.0||~5.0",
"symfony/process": "~3.0||~4.0||~5.0",
"symfony/yaml": "~3.0||~4.0||~5.0"
"php": "^7.3|^8.0",
"symfony/console": "~4.0||~5.0",
"symfony/process": "~4.0||~5.0",
"symfony/yaml": "~4.0||~5.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0"
"phpunit/phpunit": "^9.5",
"dms/phpunit-arraysubset-asserts": "^0.2.1"
},
"license": "MIT",
"authors": [
Expand Down
Loading

0 comments on commit be176af

Please sign in to comment.