Skip to content

Commit

Permalink
feat(ci): add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBellyDev committed Jan 19, 2021
1 parent 0021946 commit 9d8d1da
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build

on:
push:
pull_request:

jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['7.2', '7.3']
composer-stability: [ 'prefer-lowest', 'prefer-stable' ]

name: PHP ${{ matrix.php-versions }} - ${{ matrix.composer-stability }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2

- name: Validate composer.json
run: composer validate

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

- name: Run phpspec tests
run: ./bin/phpspec run --format=dot

- name: Run behat tests
run: ./bin/behat
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#PhpSpec data provider extension
# PhpSpec data provider extension

[![Build Status](https://travis-ci.org/coduo/phpspec-data-provider-extension.svg?branch=master)](https://travis-ci.org/coduo/phpspec-data-provider-extension)
[![GitHub Actions](https://github.com/madisoft/phpspec-data-provider-extension/workflows/Build/badge.svg)](https://github.com/madisoft/phpspec-data-provider-extension/actions)

This extension allows you to create data providers for examples in specs.

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "moave/phpspec-data-provider-extension",
"description": "This extension allows you to create data providers for examples in specs.",
"type": "library",
"keywords": ["phpspec", "dataprovider", "extension", "coduo", "data", "provider"],
"license": "MIT",
Expand Down

0 comments on commit 9d8d1da

Please sign in to comment.