Skip to content

Commit

Permalink
feat: create ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepimpao authored Mar 15, 2024
1 parent 60cb0a7 commit ab3182a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches:
- main
- "*.x"
pull_request:
branches:
- main
- "*.x"

jobs:
tests:
name: PHP ${{ matrix.php }} Test
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2', '8.3']

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

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

- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit

0 comments on commit ab3182a

Please sign in to comment.