Skip to content

Commit

Permalink
Update CI php matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed May 10, 2022
1 parent 3930dd8 commit 81949e1
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 61 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Continuous Integration"

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'

jobs:
phpunit:

runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.0, 8.1]
stability: [prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, memcached
tools: composer:v2
coverage: none

- name: Setup Memcached
uses: niden/actions-memcached@v7

- name: Install dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit --verbose
61 changes: 0 additions & 61 deletions .github/workflows/tests.yml

This file was deleted.

File renamed without changes.

0 comments on commit 81949e1

Please sign in to comment.