Skip to content

Commit

Permalink
Bye travis, hello actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Nov 30, 2019
1 parent 6bfcc70 commit e7ebe1e
Show file tree
Hide file tree
Showing 3 changed files with 348 additions and 254 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
tags:
- '*'

jobs:
test:
strategy:
matrix:
php-versions: ['7.1', '7.2', '7.3', '7.4']
runs-on: ubuntu-latest
name: PHP ${{ matrix.php-versions }} Tests
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v1
with:
php-version: ${{ matrix.php-versions }}
extension-csv: bcmath, mbstring
coverage: xdebug

- name: Check PHP Version
run: php -v

- name: Check Composer Version
run: composer -V

- name: Install Dependencies
run: composer install --prefer-dist

- name: Tests
run: composer phpunit

- name: Building artifacts
run: |
composer phpcs || true
composer phploc || true
composer phpcpd || true
composer phpmd || true
- name: Archive build artifacts
uses: actions/upload-artifact@v1
with:
name: build
path: build
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit e7ebe1e

Please sign in to comment.