Merge pull request #504 from razorpay/version-bumpup-4.5.6 #883
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: Run tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
services: | |
mariadb: | |
image: mariadb | |
ports: | |
- 3306:3306 | |
env: | |
MYSQL_ROOT_PASSWORD: root | |
# Ensure docker waits for mariadb to start | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "7.4" | |
- uses: actions/cache@v1 | |
id: cache-composer | |
with: | |
path: ~/.composer/cache | |
key: ${{ runner.os }}-composer | |
- uses: actions/cache@v1 | |
id: cache-wp-cli | |
with: | |
path: ~/.wp-cli/cache | |
key: ${{ runner.os }}-wp-cli | |
- name: Run tests | |
run: .github/run-tests |