mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Added API tests over roadrunner on CI
This commit is contained in:
2
.github/actions/ci-setup/action.yml
vendored
2
.github/actions/ci-setup/action.yml
vendored
@@ -11,7 +11,7 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
php-extensions:
|
php-extensions:
|
||||||
description: 'The PHP extensions to install'
|
description: 'The PHP extensions to install'
|
||||||
required: true
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
extensions-cache-key:
|
extensions-cache-key:
|
||||||
description: 'The key used to cache PHP extensions. If empty value is provided, extension caching is disabled'
|
description: 'The key used to cache PHP extensions. If empty value is provided, extension caching is disabled'
|
||||||
|
|||||||
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@@ -29,11 +29,27 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
test-group: unit
|
test-group: unit
|
||||||
|
|
||||||
api-tests:
|
api-tests-openswoole:
|
||||||
uses: './.github/workflows/ci-tests.yml'
|
uses: './.github/workflows/ci-tests.yml'
|
||||||
with:
|
with:
|
||||||
test-group: api
|
test-group: api
|
||||||
|
|
||||||
|
api-tests-roadrunner:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-version: [ '8.1' ]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- run: docker-compose -f docker-compose.yml -f docker-compose.ci.yml up -d shlink_db_postgres
|
||||||
|
- uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: ${{ inputs.php-version }}
|
||||||
|
tools: composer
|
||||||
|
- run: composer install --no-interaction --prefer-dist
|
||||||
|
- run: ./vendor/bin/rr get --location bin/ && chmod +x bin/rr
|
||||||
|
- run: composer test:api:rr
|
||||||
|
|
||||||
cli-tests:
|
cli-tests:
|
||||||
uses: './.github/workflows/ci-tests.yml'
|
uses: './.github/workflows/ci-tests.yml'
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user