This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
Add PHP 8.3 support #90
Workflow file for this run
This file contains 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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# schedule: | |
# - cron: '*/5 * * * *' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] | |
name: integration-tests (PHP ${{ matrix.php-versions }}) | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- | |
- name: Install dependencies | |
run: | | |
composer update --prefer-dist --no-progress | |
- name: Run test suite | |
run: | | |
vendor/bin/phpunit --color tests/ | |
env: | |
OCI_REGION: ${{ secrets.OCI_REGION }} | |
OCI_USER_ID: ${{ secrets.OCI_USER_ID }} | |
OCI_TENANCY_ID: ${{ secrets.OCI_TENANCY_ID }} | |
OCI_KEY_FINGERPRINT: ${{ secrets.OCI_KEY_FINGERPRINT }} | |
OCI_PRIVATE_KEY_FILENAME: ${{ secrets.OCI_PRIVATE_KEY_FILENAME }} | |
OCI_AVAILABILITY_DOMAIN: ${{ secrets.OCI_AVAILABILITY_DOMAIN }} | |
OCI_SUBNET_ID: ${{ secrets.OCI_SUBNET_ID }} | |
OCI_IMAGE_ID: ${{ secrets.OCI_IMAGE_ID }} | |
OCI_OCPUS: ${{ secrets.OCI_OCPUS }} | |
OCI_MEMORY_IN_GBS: ${{ secrets.OCI_MEMORY_IN_GBS }} | |
OCI_SHAPE: ${{ secrets.OCI_SHAPE }} | |
OCI_MAX_INSTANCES: ${{ secrets.OCI_MAX_INSTANCES }} | |
OCI_SSH_PUBLIC_KEY: ${{ secrets.OCI_SSH_PUBLIC_KEY }} | |
TELEGRAM_USER_ID: ${{ secrets.TELEGRAM_USER_ID }} | |
TELEGRAM_BOT_API_KEY: ${{ secrets.TELEGRAM_BOT_API_KEY }} | |