Skip to content

Commit

Permalink
Add a CI with GitHub Actions (#60)
Browse files Browse the repository at this point in the history
* Add a CI with GitHub Actions

* Fixed wording

Co-authored-by: Grégoire Pineau <[email protected]>
  • Loading branch information
HedicGuibert and lyrixx authored Aug 30, 2021
1 parent 2635ddc commit 8c561ea
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 18 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Install project and run tests

on:
push:
branches: [ main ]
pull_request:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php-versions }}

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run tests
run: composer test
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

0 comments on commit 8c561ea

Please sign in to comment.