Skip to content

Commit

Permalink
Merge pull request #61 from clarkeash/feature/move-to-actions
Browse files Browse the repository at this point in the history
move to github actions
  • Loading branch information
clarkeash committed Jun 5, 2020
2 parents c373bc5 + 1e06aa4 commit 6e1f199
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 33 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
pull_request:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
tests:
# The type of runner that the job will run on
runs-on: ubuntu-latest

strategy:
matrix:
php: [7.2, 7.3, 7.4]
stability: [prefer-lowest, prefer-stable]

# Steps represent a sequence of tasks that will be executed as part of the job
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, pcntl, pdo, sqlite, pdo_sqlite, gd
coverage: none

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest

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

- name: Scruntinizer
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# Doorman

<p align="center">
<a href="https://travis-ci.org/clarkeash/doorman">
<img src="https://img.shields.io/travis/clarkeash/doorman.svg?style=for-the-badge">
<a href="https://github.com/clarkeash/laravel-http-stats/actions?query=workflow%3ACI">
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/clarkeash/doorman/CI?logo=github&style=for-the-badge">
</a>
<a href="https://scrutinizer-ci.com/g/clarkeash/doorman/code-structure/master/code-coverage">
<img src="https://img.shields.io/scrutinizer/coverage/g/clarkeash/doorman.svg?style=for-the-badge">
</a>
<a href="https://scrutinizer-ci.com/g/clarkeash/doorman">
<img src="https://img.shields.io/scrutinizer/g/clarkeash/doorman.svg?style=for-the-badge">
<img src="https://img.shields.io/scrutinizer/coverage/g/clarkeash/doorman.svg?style=for-the-badge">
</a>
<a href="https://github.com/clarkeash/doorman/blob/master/LICENSE">
<img src="https://img.shields.io/github/license/clarkeash/doorman.svg?style=for-the-badge">
</a>
<img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/clarkeash/doorman?sort=semver&style=for-the-badge">
<a href="https://packagist.org/packages/clarkeash/doorman">
<img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/clarkeash/doorman?sort=semver&style=for-the-badge">
</a>
<a href="https://twitter.com/clarkeash">
<img src="http://img.shields.io/badge/author-@clarkeash-blue.svg?style=for-the-badge">
</a>
Expand Down

0 comments on commit 6e1f199

Please sign in to comment.