Skip to content

Merge pull request #202 from vtsykun/feat/api-token2 #240

Merge pull request #202 from vtsykun/feat/api-token2

Merge pull request #202 from vtsykun/feat/api-token2 #240

Workflow file for this run

name: "Run Tests"
on:
push:
paths:
- 'src/**'
- 'tests/**'
- 'templates/**'
- 'config/**'
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: read
env:
APP_ENV: test
jobs:
tests:
strategy:
fail-fast: false
matrix:
include:
- php: '8.1'
redis: '6'
- php: '8.3'
redis: '7'
name: PHP ${{ matrix.php }}
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "curl, mbstring, pdo, pdo_sqlite, sqlite, zip, redis"
php-version: ${{ matrix.php }}
tools: composer
- name: "Install dependencies"
run: composer update --ansi --no-interaction
- name: Start Redis
uses: "supercharge/[email protected]"
with:
redis-version: ${{ matrix.redis }}
- name: "Run tests"
run: "composer tests"