diff --git a/.github/actions/ci-setup/action.yml b/.github/actions/ci-setup/action.yml index eb7c8979..78cbdf1c 100644 --- a/.github/actions/ci-setup/action.yml +++ b/.github/actions/ci-setup/action.yml @@ -11,7 +11,7 @@ inputs: required: true php-extensions: description: 'The PHP extensions to install' - required: true + required: false default: '' extensions-cache-key: description: 'The key used to cache PHP extensions. If empty value is provided, extension caching is disabled' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57985e8a..1fcebea2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,11 +29,27 @@ jobs: with: test-group: unit - api-tests: + api-tests-openswoole: uses: './.github/workflows/ci-tests.yml' with: 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: uses: './.github/workflows/ci-tests.yml' with: