Skip to content

Tests

Tests #2021

Workflow file for this run

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']
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 script
run: |
php index.php
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 }}