fix: undefined array key #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
mariadb: | |
image: mariadb:10.4 | |
ports: | |
- 3306:3306 | |
env: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_DATABASE: test | |
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP with composer v2 | |
uses: shivammathur/setup-php@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
php-version: '7.4' | |
tools: composer:v2 | |
- name: Install dependencies | |
run: composer i | |
- name: Download ACF plugin | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ secrets.PAID_PLUGINS_REPO }} | |
token: ${{ secrets.HBG_GH_TOKEN }} | |
path: wp-paid-plugins | |
- name: Unzip ACF plugin to tmp folder | |
run: unzip wp-paid-plugins/acf.zip -d /tmp | |
- name: Remove downloaded paid plugins repo | |
run: rm -rf wp-paid-plugins | |
- name: Set up test environment | |
run: composer run test:setup test root root 127.0.0.1 latest true true | |
- name: Run tests | |
run: composer run test |