Skip to content

Commit

Permalink
Removed travis ci and added github action for phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfensdrfer committed Jan 7, 2021
1 parent 8e3e095 commit fe3f99d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 19 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PHPUnit

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: composer run-script test
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Build Status](https://travis-ci.org/VisualAppeal/PHP-Auto-Update.svg?branch=master)](https://travis-ci.org/VisualAppeal/PHP-Auto-Update)

With this library your users can automatically update their instance of your application to the newest version. I created it as a proof of concept and don't know if it is used somewhere. So please use this library with caution because it can potentially make your users software nonfunctional if something goes wrong.

## Installation
Expand All @@ -12,7 +10,7 @@ With this library your users can automatically update their instance of your app

## Example

You can start an example docker container via `docker-compose up` and see the example by visiting `http://127.0.0.1:8080/example/client/`
You can start an example docker container via `docker-compose up` and see the example by visiting `http://127.0.0.1:8080/example/client/`

## Client

Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"VisualAppeal\\": "src/"
}
},
"scripts": {
"test": "phpunit -c tests/UnitTests.xml"
},
"config": {
"sort-packages": true
}
Expand Down

0 comments on commit fe3f99d

Please sign in to comment.