chore: Add docker file and compose #53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4'] | |
| name: PHP ${{ matrix.php-versions }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set Timezone | |
| uses: szenius/set-timezone@v1.0 | |
| with: | |
| timezoneLinux: "Europe/Paris" | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| extensions: json | |
| ini-values: date.timezone=Europe/Paris | |
| - name: Check PHP Version | |
| run: php -v | |
| - name: Validate composer.json and composer.lock | |
| run: composer validate --strict | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Run test suite | |
| run: composer run-script tests | |
| with_prime: | |
| runs-on: ubuntu-latest | |
| name: With prime adapter | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set Timezone | |
| uses: szenius/set-timezone@v1.0 | |
| with: | |
| timezoneLinux: "Europe/Paris" | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.0 | |
| extensions: json | |
| ini-values: date.timezone=Europe/Paris | |
| - name: Check PHP Version | |
| run: php -v | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Install prime adapter | |
| run: composer require --dev b2pweb/bdf-queue-prime-adapter | |
| - name: Run test suite | |
| run: composer run-script tests | |
| lib_compat: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| bdf-queue-versions: ['1.4.0', '1.5.0'] | |
| name: Compatibility with bdf-queue v${{ matrix.bdf-queue-versions }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set Timezone | |
| uses: szenius/set-timezone@v1.0 | |
| with: | |
| timezoneLinux: "Europe/Paris" | |
| - name: Install PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.0 | |
| extensions: json | |
| ini-values: date.timezone=Europe/Paris | |
| - name: Check PHP Version | |
| run: php -v | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Install prime adapter | |
| run: composer require --dev "b2pweb/bdf-queue:~${{ matrix.bdf-queue-versions }}" | |
| - name: Run test suite | |
| run: composer run-script tests |