Skip to content

Commit

Permalink
Build: Move to GitHub actions (#2)
Browse files Browse the repository at this point in the history
* deps: bump to PHP >= 7.3

* build: switch to Github Actions

* deps: remove coveralls
  • Loading branch information
bpolaszek committed Dec 20, 2020
1 parent 6c89f61 commit 6a32de3
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 24 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/php.yml
@@ -0,0 +1,56 @@
name: CI Workflow

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

jobs:

tests:
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.experimental }}
strategy:
max-parallel: 10
matrix:
php:
- '7.3'
- '7.4'
- '8.0'
experimental: [ false ]
include:
- php: 8.1
experimental: true

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

- name: Cache dependencies
uses: actions/cache@v2
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: pdo, pdo_sqlite
coverage: xdebug

- name: Install dependencies
run: |
composer install --prefer-dist --no-interaction
- name: Check code style
run: ./vendor/bin/phpcs --standard=psr2 -n src/

- name: Execute tests
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
@@ -1,8 +1,7 @@
[![Latest Stable Version](https://poser.pugx.org/bentools/doctrine-ulid/v/stable)](https://packagist.org/packages/bentools/doctrine-ulid)
[![License](https://poser.pugx.org/bentools/doctrine-ulid/license)](https://packagist.org/packages/bentools/doctrine-ulid)
[![Build Status](https://img.shields.io/travis/bpolaszek/doctrine-ulid/master.svg?style=flat-square)](https://travis-ci.org/bpolaszek/doctrine-ulid)
[![Coverage Status](https://coveralls.io/repos/github/bpolaszek/doctrine-ulid/badge.svg?branch=master)](https://coveralls.io/github/bpolaszek/doctrine-ulid?branch=master)
[![Quality Score](https://img.shields.io/scrutinizer/g/bpolaszek/doctrine-ulid.svg?style=flat-square)](https://scrutinizer-ci.com/g/bpolaszek/doctrine-ulid)
[![Coverage](https://codecov.io/gh/bpolaszek/doctrine-ulid/branch/master/graph/badge.svg?token=LYGYNDV8D2)](https://codecov.io/gh/bpolaszek/doctrine-ulid)[![Quality Score](https://img.shields.io/scrutinizer/g/bpolaszek/doctrine-ulid.svg?style=flat-square)](https://scrutinizer-ci.com/g/bpolaszek/doctrine-ulid)
[![Total Downloads](https://poser.pugx.org/bentools/doctrine-ulid/downloads)](https://packagist.org/packages/bentools/doctrine-ulid)

# Doctrine ULID generator
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -15,14 +15,13 @@
"type": "library",
"license": "MIT",
"require": {
"php": ">=7.1",
"php": ">=7.3",
"robinvdvleuten/ulid": "~2.0|~3.0"
},
"require-dev": {
"doctrine/orm": "^2.3",
"phpunit/phpunit": "^5.0|^6.0|^7.0",
"squizlabs/php_codesniffer": "@stable",
"php-coveralls/php-coveralls": "@stable",
"matthiasnoback/doctrine-orm-test-service-provider": "^3.0",
"symfony/var-dumper": "^4.2"
},
Expand Down

0 comments on commit 6a32de3

Please sign in to comment.