Switched to travis for CI

This commit is contained in:
Chris Kankiewicz
2020-01-20 11:18:37 -07:00
parent b5e9742778
commit ef2aac57c3
2 changed files with 27 additions and 31 deletions

View File

@@ -1,31 +0,0 @@
name: Directory Lister Test Suite
on: [push]
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache PHP Dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Validate Composer Files
run: composer validate
- name: Install PHP Dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run Tests
run: vendor/bin/phpunit --coverage-text

27
.travis.yml Normal file
View File

@@ -0,0 +1,27 @@
sudo: false
language: php
php:
- 7.3
- 7.4
- nightly
matrix:
allow_failures:
- php: nightly
cache:
directories:
- $HOME/.composer/cache
- vendor
before_install: phpenv config-rm xdebug.ini || true
install: composer install
before_script:
- vendor/bin/php-cs-fixer fix --diff --dry-run
- vendor/bin/psalm
script: vendor/bin/phpunit --coverage-text