From d39f21c99437c8344789bdf5c23eeec15a15ab94 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Mon, 19 Apr 2021 21:01:17 -0700 Subject: [PATCH] Switched from Travis CI to GitHub Actions --- .github/workflows/test-suite.yaml | 56 +++++++++++++++++++++++++++++++ .travis.yml | 31 ----------------- 2 files changed, 56 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/test-suite.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/test-suite.yaml b/.github/workflows/test-suite.yaml new file mode 100644 index 0000000..99d52dc --- /dev/null +++ b/.github/workflows/test-suite.yaml @@ -0,0 +1,56 @@ +name: Config Test Suite +on: [push] + +jobs: + coding-standards: + name: Coding Standards + runs-on: 'ubuntu-latest' + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install PHP Dependencies + run: composer update + + - name: Verify Coding Standards + run: vendor/bin/php-cs-fixer fix --diff --dry-run + + static-analysis: + name: Static Analysis + runs-on: 'ubuntu-latest' + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install PHP Dependencies + run: composer update + + - name: Run Static Analysis + run: vendor/bin/psalm + + tests: + name: Tests + runs-on: 'ubuntu-latest' + + strategy: + matrix: + php-versions: ['7.2', '7.3', '7.4', '8.0'] + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + coverage: xdebug + + - name: Install PHP Dependencies + run: composer update + + - name: Run Tests + run: vendor/bin/phpunit --coverage-text + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 63f1b49..0000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -os: linux -dist: bionic -language: php - -env: - - COMPOSER_PREFER=default - - COMPOSER_PREFER=lowest - -php: - - 7.1 - - 7.2 - - 7.3 - - 7.4 - - nightly - -jobs: - allow_failures: - - php: nightly - -cache: - directories: - - $HOME/.composer/cache - - vendor - -install: - - "[[ $COMPOSER_PREFER == 'lowest' ]] && composer update --prefer-lowest || composer install" - -script: - - vendor/bin/php-cs-fixer fix --diff --dry-run - - vendor/bin/psalm --show-info=true - - vendor/bin/phpunit --coverage-text