Skip to content

Commit

Permalink
Bye bye Travis, shame you suck now. Welcome Actions!
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin de Graaf committed Jan 22, 2021
1 parent ca6bc53 commit 6131dea
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Tests

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: vendor/bin/phpunit tests
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Parable Event

[![Build Status](https://travis-ci.com/parable-php/event.svg?branch=master)](https://travis-ci.com/parable-php/event)
[![Workflow Status](https://github.com/parable-php/event/workflows/Tests/badge.svg)](https://github.com/parable-php/event/actions?query=workflow%3ATests)
[![Latest Stable Version](https://poser.pugx.org/parable-php/event/v/stable)](https://packagist.org/packages/parable-php/event)
[![Latest Unstable Version](https://poser.pugx.org/parable-php/event/v/unstable)](https://packagist.org/packages/parable-php/event)
[![License](https://poser.pugx.org/parable-php/event/license)](https://packagist.org/packages/parable-php/event)
Expand Down

0 comments on commit 6131dea

Please sign in to comment.