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 7302b3b commit 18e76bf
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 10 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 ORM

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

This file was deleted.

0 comments on commit 18e76bf

Please sign in to comment.