Skip to content

Commit

Permalink
3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona authored Aug 22, 2022
2 parents cb0ef90 + 8574145 commit 6e9c577
Show file tree
Hide file tree
Showing 277 changed files with 44,067 additions and 32,185 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy_dynamic_lists_fallback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This is a basic workflow to help you get started with Actions

name: Dynamic lists fallback update

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "trunk" ]
pull_request:
branches: [ "trunk" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: get latest dynamic lists
id: getDynamicLists
run: |
echo "::set-output name=lists::$(curl -s https://b.rucss.wp-rocket.me/api/exclusions/list)"
- name: save lists
id: saveDynamicLists
run: |
touch dynamic-lists.json
echo '${{ steps.getDynamicLists.outputs.lists }}' > dynamic-lists.json
cat dynamic-lists.json
- name: Commit the file
if: ${{ steps.saveDynamicLists.outcome == 'success' }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: update dynamic lists
commit_user_name: WP Media GitHub Actions Bot
7 changes: 6 additions & 1 deletion .github/workflows/deploy_plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '7.2'
tools: composer:v2

- name: Get composer cache directory
Expand All @@ -34,6 +35,10 @@ jobs:
mv wp-rocket-* wp-rocket
working-directory: /tmp

- name: Remove unmet dependencies by legacy versions
run: composer remove --dev --update-no-dev --no-scripts coenjacobs/mozart
working-directory: /tmp/wp-rocket

- name: Run composer
run: composer install --no-scripts --no-dev
working-directory: /tmp/wp-rocket
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_wprocket_legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
fail-fast: true
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.1', '7.2']
wp-versions: ['5.5.8']
php-versions: ['7.2']
wp-versions: ['5.6']

name: WP ${{ matrix.wp-versions }} with PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}.

Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
restore-keys: ${{ runner.os }}-composer-

- name: Remove unmet dependencies by legacy versions
run: composer remove --dev --no-scripts phpstan/phpstan szepeviktor/phpstan-wordpress coenjacobs/mozart
run: composer remove --dev --no-scripts coenjacobs/mozart

- name: Require PHPUnit 7.5 for WP compatibility
run: composer require --dev --no-scripts phpunit/phpunit "^7.5" -W
Expand Down
Loading

0 comments on commit 6e9c577

Please sign in to comment.