Skip to content

V4 docs and setup

V4 docs and setup #256

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Test
on: # yamllint disable-line rule:truthy
pull_request: null
push:
branches:
- "master"
permissions:
contents: "read"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
php_version: [ '8.0', '8.1', '8.2' ]
name: PHP ${{ matrix.php_version }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Build WordPress image
uses: docker/build-push-action@v4
with:
context: config/containers/php
file: config/containers/php/Dockerfile
load: true
push: false
tags: wp-browser-wordpress:php${{ matrix.php_version }}-apache
cache-from: type=gha,scope=${{ github.ref }}-${{ matrix.php_version }}-wordpress
cache-to: type=gha,scope=${{ github.ref }}-${{ matrix.php_version }}-wordpress
build-args: |
PHP_VERSION=${{ matrix.php_version }}
TARGET=wordpress
- name: Build Codeception image
uses: docker/build-push-action@v4
with:
context: config/containers/php
file: config/containers/php/Dockerfile
load: true
push: false
tags: wp-browser-wordpress:php${{ matrix.php_version }}-codeception
cache-from: type=gha,scope=${{ github.ref }}-${{ matrix.php_version }}-codeception
cache-to: type=gha,scope=${{ github.ref }}-${{ matrix.php_version }}-codeception
build-args: |
PHP_VERSION=${{ matrix.php_version }}
TARGET=codeception
- name: Build
run: bin/stack -p${{ matrix.php_version }} -s build
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: var/cache/composer
key: ${{ runner.os }}-${{ hashFiles('**/composer.json') }}
- name: Install dependencies
run: bin/stack -p${{ matrix.php_version }} composer_update
- name: acceptance
run: bin/stack -p${{ matrix.php_version }} run acceptance --ext DotReporter
- name: climodule
run: bin/stack -p${{ matrix.php_version }} run climodule --ext DotReporter
- name: functional
run: bin/stack -p${{ matrix.php_version }} run functional --ext DotReporter
- name: muloader
run: bin/stack -p${{ matrix.php_version }} run muloader --ext DotReporter
- name: unit
run: bin/stack -p${{ matrix.php_version }} run unit --debug -f
- name: webdriver
run: bin/stack -p${{ matrix.php_version }} run webdriver --ext DotReporter
- name: wpcli_module
run: bin/stack -p${{ matrix.php_version }} run wpcli_module --ext DotReporter
- name: wploader_multisite
run: bin/stack -p${{ matrix.php_version }} run wploader_multisite --ext DotReporter
- name: wploader_wpdb_interaction
run: bin/stack -p${{ matrix.php_version }} run wploader_wpdb_interaction --ext DotReporter
- name: wploadersuite
run: bin/stack -p${{ matrix.php_version }} run wploadersuite --ext DotReporter