Skip to content

fix: remove redundant depdencies. #10

fix: remove redundant depdencies.

fix: remove redundant depdencies. #10

Workflow file for this run

name: Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
tests:
runs-on: ubuntu-latest
services:
quant-mock-api:
image: ghcr.io/quantcdn/quant-mock-api:4.4.0
ports:
- 4010:4010
options: >-
--health-cmd "nc -z 127.0.0.1 4010"
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3']
name: PHP ${{ matrix.php-version }}
env:
QUANT_MOCK_API_HOST: http://localhost:4010
QUANT_API_TOKEN: test-token
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: curl, json, mbstring
coverage: xdebug
tools: composer:v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-version }}-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: vendor/bin/phpunit