Skip to content

add ApiKeyProvider for rotate api keys by api rate limits #13

add ApiKeyProvider for rotate api keys by api rate limits

add ApiKeyProvider for rotate api keys by api rate limits #13

Workflow file for this run

name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
php-test-8_1:
name: phpunit 8.1
runs-on: 'ubuntu-latest'
services:
postgres:
image: postgres:16.1-alpine3.19
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2
coverage: xdebug
- name: Validate composer.json
run: composer validate --strict
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run PHPUnit
env:
RAPID_API_KEY: ${{ secrets.RAPID_API_KEY }}
DB_HOST: postgres
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_DATABASE: postgres
run: php ./vendor/bin/phpunit
php-test-8_2:
name: phpunit 8.2
runs-on: 'ubuntu-latest'
services:
postgres:
image: postgres:16.1-alpine3.19
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer:v2
coverage: xdebug
- name: Validate composer.json
run: composer validate --strict
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run PHPUnit
env:
RAPID_API_KEY: ${{ secrets.RAPID_API_KEY }}
DB_HOST: postgres
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_DATABASE: postgres
run: php ./vendor/bin/phpunit