-
-
Notifications
You must be signed in to change notification settings - Fork 85
115 lines (115 loc) · 3.66 KB
/
test.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Test
on:
push:
paths:
- "src/**"
- "tests/**"
- "composer.json"
jobs:
test_codeception_4_php_56:
name: PHP 5.6, Codeception 4
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v2
- name: Build WordPress image
uses: docker/build-push-action@v4
with:
context: containers/php
file: containers/php/Dockerfile-PHP-5.6
push: false
tags: lucatume/wp-browser-v3-wordpress:php5.6-apache
cache-from: type=gha,scope=5.6
cache-to: type=gha,mode=max,scope=5.6
load: true
build-args: |
PHP_VERSION=5.6
WP_IMAGE_VERSION=5
TARGET=wordpress
USER_UID=33
USER_GID=33
USER_NAME=www-data
- name: Build Codeception image
uses: docker/build-push-action@v4
with:
context: containers/php
file: containers/php/Dockerfile-PHP-5.6
push: false
tags: lucatume/wp-browser-v3-codecept:php5.6
cache-from: type=gha,scope=5.6
cache-to: type=gha,mode=max,scope=5.6
load: true
build-args: |
PHP_VERSION=5.6
WP_IMAGE_VERSION=5
TARGET=codeception
USER_UID=33
USER_GID=33
USER_NAME=www-data
- name: Build
run: bin/stack -p5.6 build
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: var/cache/composer
key: ${{ runner.os }}-${{ hashFiles('**/composer.json') }}-5.6
- name: Install dependencies
run: bin/stack -p5.6 composer_update
- name: Test
run: bin/stack -p5.6 test
test_codeception_4:
strategy:
matrix:
php_version: [ '7.4', '8.0', '8.1', '8.2' ]
name: PHP ${{ matrix.php_version }}, Codeception 4
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v2
- name: Build WordPress image
uses: docker/build-push-action@v4
with:
context: containers/php
file: containers/php/Dockerfile-PHP-5.6
push: false
tags: lucatume/wp-browser-v3-wordpress:php5.6-apache
cache-from: type=gha,scope=5.6
cache-to: type=gha,mode=max,scope=5.6
load: true
build-args: |
PHP_VERSION=5.6
WP_IMAGE_VERSION=5
TARGET=wordpress
USER_UID=33
USER_GID=33
USER_NAME=www-data
- name: Build Codeception image
uses: docker/build-push-action@v4
with:
context: containers/php
file: containers/php/Dockerfile
push: false
tags: lucatume/wp-browser-v3-codecept:php${{ matrix.php_version }}
cache-from: type=gha,scope=${{ matrix.php_version }}
cache-to: type=gha,mode=max,scope=${{ matrix.php_version }}
load: true
build-args: |
PHP_VERSION=${{ matrix.php_version }}
WP_IMAGE_VERSION=6
TARGET=codeception
USER_UID=33
USER_GID=33
USER_NAME=www-data
- name: Build
run: bin/stack -p5.6 build
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: var/cache/composer
key: ${{ runner.os }}-${{ hashFiles('**/composer.json') }}-${{ matrix.php_version }}
- name: Install dependencies
run: bin/stack -p${{ matrix.php_version }} composer_update
- name: Test
run: bin/stack -p${{ matrix.php_version }} test