mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-31 09:31:52 +02:00
Switched to travis for CI
This commit is contained in:
31
.github/workflows/test-suite.yaml
vendored
31
.github/workflows/test-suite.yaml
vendored
@@ -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
27
.travis.yml
Normal 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
|
Reference in New Issue
Block a user