Skip to content

Commit

Permalink
Add GitHub Actions workflow (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Jul 6, 2022
1 parent 64495ff commit 6232a7b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 51 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "CI"

on:
push:
branches:
- "main"
- "master"
pull_request: null

jobs:
tests:
runs-on: "ubuntu-latest"
name: "Test PHP${{ matrix.php }}"
strategy:
fail-fast: true
matrix:
php:
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"

steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"

- name: "Setup PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
tools: "composer"

- name: "Configure Composer bin directory"
run: "composer global config repositories.bin path $PWD"

- name: "Install Composer bin plugin"
run: "composer global require bamarni/composer-bin-plugin:dev-master"

- name: "Install Composer dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"

- name: "Run tests"
run: "vendor/bin/phpunit"
51 changes: 0 additions & 51 deletions .travis.yml

This file was deleted.

0 comments on commit 6232a7b

Please sign in to comment.