Skip to content

Commit

Permalink
Add github actions for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlmoon committed Jan 12, 2024
1 parent 9fdd327 commit 0dd15c5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Testing brianlmoon/net_gearman

on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2']
include:
- operating-system: 'ubuntu-latest'
php-versions: '8.0'
phpunit-versions: 9
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Composer Install
uses: php-actions/composer@v6
with:
php_version: ${{ matrix.php-versions }}

- name: PHPUnit tests
uses: php-actions/phpunit@v3
with:
php_extensions: "pcov yaml"
version: "9.6"
php_version: ${{ matrix.php-versions }}

- name: Run Phan
uses: k1LoW/phan-action@v0

0 comments on commit 0dd15c5

Please sign in to comment.