forked from he4rt/scylladb-php-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (49 loc) · 1.22 KB
/
test.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
name: 'Test PHP Extension'
on:
workflow_dispatch:
inputs:
image:
type: string
description: 'Image Tag'
required: true
default: 'php-8.2.6'
workflow_call:
inputs:
image:
type: string
description: 'Image Tag'
required: true
default: 'php-8.2.6'
jobs:
test:
runs-on: ubuntu-latest
container: malusevd99/scylladb-php-driver:${{ inputs.image }}
services:
scylladb:
image: scylladb/scylla:5.1
ports:
- 9042:9042
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: recursive
- name: Set new PATH
run: |
export PATH=$PATH:/usr/local/bin:/root/php/bin
- name: Compile using CMake
run: |
./scripts/compile-extension.sh
- name: Composer install
working-directory: ./tests
run: |
/root/php/bin/php /bin/composer install
- name: Run tests
working-directory: ./tests
run: |
/root/php/bin/php ./vendor/bin/pest
env:
SCYLLADB_HOSTS: scylladb
SCYLLADB_PORT: 9042
SCYLLADB_USERNAME: cassandra
SCYLLADB_PASSWORD: cassandra