Skip to content

Commit 5503d01

Browse files
committed
Update BlackBox Tests and add to checks
Blackbox tests still ran on 5.6 and with really old redis/apcu versions. They are now updated to 7.4 and equivalent latest versions of the libraries. They are also now running alongside the tests. Signed-off-by: Rafael Dohms <rdohms@gmail.com>
1 parent 485af30 commit 5503d01

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

.github/workflows/blackbox.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: BlackBox Tests
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
11+
name: Run BlackBox Tests
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Cache dependencies
17+
uses: actions/cache@v2
18+
with:
19+
path: ~/.composer/cache/files
20+
key: dependencies-blackbox
21+
22+
- name: Setup PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: 7.4
26+
coverage: none
27+
28+
- name: Install dependencies
29+
run: composer install --prefer-dist --no-interaction --no-suggest
30+
31+
- name: Compose Blackbox environment
32+
run: docker-compose up -d
33+
- name: Run Blackbox with APC
34+
run: docker-compose run phpunit env ADAPTER=apc vendor/bin/phpunit tests/Test/
35+
- name: Run Blackbox with Redis
36+
run: docker-compose run phpunit env ADAPTER=redis vendor/bin/phpunit tests/Test/
37+
38+
39+

php-fpm/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM php:5.6-fpm
1+
FROM php:7.4-fpm
22

3-
RUN pecl install redis-2.2.8 && docker-php-ext-enable redis
4-
RUN pecl install apcu-4.0.11 && docker-php-ext-enable apcu
3+
RUN pecl install redis-5.3.1 && docker-php-ext-enable redis
4+
RUN pecl install apcu-5.1.19 && docker-php-ext-enable apcu
55

66
COPY www.conf /usr/local/etc/php-fpm.d/
77
COPY docker-php-ext-apcu-cli.ini /usr/local/etc/php/conf.d/

0 commit comments

Comments
 (0)