Skip to content

Commit

Permalink
Update automation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwriter committed Jun 29, 2023
1 parent 5593ce7 commit 5e72089
Showing 1 changed file with 13 additions and 25 deletions.
38 changes: 13 additions & 25 deletions .github/workflows/automation.yml
Expand Up @@ -39,16 +39,16 @@ jobs:
continue-on-error: ${{ matrix.experimental }}

# Docs: https://docs.github.com/en/actions/using-containerized-services
services:
mysql:
image: mysql:latest
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: 'toor'
MYSQL_DATABASE: 'testdb'
ports:
- 3306/tcp
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
# services:
# mysql:
# image: mysql:latest
# env:
# MYSQL_ALLOW_EMPTY_PASSWORD: false
# MYSQL_ROOT_PASSWORD: 'toor'
# MYSQL_DATABASE: 'testdb'
# ports:
# - 3306/tcp
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

strategy:
fail-fast: false
Expand Down Expand Up @@ -95,22 +95,10 @@ jobs:
- name: Setup Problem Matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache composer dependencies
uses: actions/cache@v3
- name: Install ${{ matrix.dependencies }} dependencies
uses: "ramsey/composer-install@v2"
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
# prefer-lowest and prefer-stable
# key: ${{ runner.os }}-composer-${{ matrix.prefer }}-${{ hashFiles('**/composer.lock') }}
# restore-keys: ${{ runner.os }}-composer-${{ matrix.prefer }}-

- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader --ignore-platform-req=php
dependency-versions: "${{ matrix.dependencies }}"

- name: Run ${{ matrix.name }} command
run: ${{ matrix.command }}
Expand Down

0 comments on commit 5e72089

Please sign in to comment.