This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 509
63 lines (57 loc) · 2.11 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
# schedule:
# - cron: '*/5 * * * *'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['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 }}