Skip to content

Commit

Permalink
Merge pull request #816 from W0rma/github-actions
Browse files Browse the repository at this point in the history
Replace Travis with GitHub actions
  • Loading branch information
spipu authored Dec 3, 2024
2 parents 181e499 + e8afb65 commit befc812
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 16 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
phpunit:
name: "PHPUnit"
runs-on: "ubuntu-24.04"

strategy:
matrix:
php-version:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "none"
extensions: gd, mbstring

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
with:
composer-options: "--prefer-dist"

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

This file was deleted.

0 comments on commit befc812

Please sign in to comment.