Skip to content

Commit

Permalink
Add composer install package
Browse files Browse the repository at this point in the history
  • Loading branch information
umutphp committed Aug 14, 2023
1 parent 24e9f9e commit 77cdf1d
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/composer-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Composer Install

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
dependency-versions:
- "lowest"
- "highest"

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

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

- name: Install composer dependencies
uses: ramsey/composer-install@v2
with:
dependency-versions: ${{ matrix.dependency-versions }}

- name: Run PHPUnit
run: vendor/bin/phpunit tests

0 comments on commit 77cdf1d

Please sign in to comment.