Skip to content

Commit

Permalink
Add GitHub Actions (#1101)
Browse files Browse the repository at this point in the history
* Add GitHub Actions

* Update GitHub Actions

* Add low/high dependencies

* Update low/high dependencies

* Disable fail fast

See https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast

* Update GitHub Actions

* Update GitHub Action name

* Create provider.yml

* Create component.yml

* Update component.yml

* Update provider.yml

* Update component.yml

* Update GitHub Action name

* Update component.yml

* Split tests with ext-geoip + Disable test for deprecated providers

* Update provider.yml

GeoIP extensions is not (yet?) available for PHP 8.0.

* Update provider.yml

Disable test for IP2LocationBinary because it needs binary file.
Travis CI test has also never passed.

* Update provider.yml

Use `composer update` insted of `composer install`.

* Update provider.yml

Use `composer update` insted of `composer install`.

* Update README.md

* Delete .travis.yml

* Delete .travis.yml for providers

* Add GitHub Actions workflow for providers

* Update provider.yml (Geoip)

* Delete .travis.yml for components

* Add GitHub Actions workflow for components
  • Loading branch information
jbelien committed Jun 20, 2021
1 parent 851254e commit 83ebadc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 18 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/provider.yml
@@ -0,0 +1,33 @@
name: Provider

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

jobs:
test:
name: PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['7.3', '7.4', '8.0']
steps:
- uses: actions/checkout@v2
- name: Use PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install dependencies
run: composer update --prefer-stable --prefer-dist --no-progress
- name: Run test suite
run: composer run-script test-ci
- name: Upload Coverage report
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit 83ebadc

Please sign in to comment.