-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from travis to Github actions (#304)
* Switch from travis to Github actions * Update PHPUnit with yoast polyfill for 7.0 to 8.0 support. * Housekeeping: CS * Comment out lint for now, lots of failures, why?
- Loading branch information
Showing
11 changed files
with
335 additions
and
564 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
on: push | ||
name: CI | ||
jobs: | ||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0'] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: "cs2pr" | ||
|
||
- name: "Cache dependencies installed with composer" | ||
uses: "actions/cache@v1" | ||
with: | ||
path: "~/.composer/cache" | ||
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}" | ||
restore-keys: "php-${{ matrix.php-version }}-composer-locked-" | ||
|
||
- name: "Composer" | ||
run: "composer update --prefer-stable" | ||
|
||
- name: "PHPUnit" | ||
run: "php vendor/bin/phpunit" | ||
|
||
# lint: | ||
# name: Lint | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v1 | ||
|
||
# - name: Setup PHP | ||
# uses: shivammathur/setup-php@v2 | ||
# with: | ||
# php-version: 7.4 | ||
|
||
# - name: "Cache dependencies installed with composer" | ||
# uses: "actions/cache@v1" | ||
# with: | ||
# path: "~/.composer/cache" | ||
# key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}" | ||
# restore-keys: "php-${{ matrix.php-version }}-composer-locked-" | ||
|
||
# - name: "Composer" | ||
# run: "composer update --prefer-stable" | ||
|
||
# - name: "assert:cs-lint" | ||
# run: "composer assert:cs-lint" | ||
|
||
# - name: "assert:sa-code" | ||
# run: "composer assert:sa-code" | ||
|
||
# - name: "assert:sa-tests" | ||
# run: "composer assert:sa-tests" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.