Skip to content

More good but slow dois #7340

More good but slow dois

More good but slow dois #7340

Workflow file for this run

name: Bot Full Test Suite
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '25 17 * * 1'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup PHP with PCOV
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
ini-values: pcov.directory=.
coverage: pcov
extensions: mbstring, intl
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Configure composer and dependencies
run: composer config allow-plugins.third-party/required-plugin true && composer config minimum-stability dev && composer config prefer-stable true && composer require mediawiki/oauthclient:2.0.0 phpunit/phpunit:9.*.*
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist -vvv --no-progress
- name: Full test with PHP
env:
PHP_ADSABSAPIKEY: ${{ secrets.PHP_ADSABSAPIKEY }}
PHP_OAUTH_CONSUMER_TOKEN: ${{ secrets.PHP_OAUTH_CONSUMER_TOKEN }}
PHP_OAUTH_CONSUMER_SECRET: ${{ secrets.PHP_OAUTH_CONSUMER_SECRET }}
PHP_OAUTH_ACCESS_TOKEN: ${{ secrets.PHP_OAUTH_ACCESS_TOKEN }}
PHP_OAUTH_ACCESS_SECRET: ${{ secrets.PHP_OAUTH_ACCESS_SECRET }}
PHP_WP_OAUTH_SECRET: ${{ secrets.PHP_WP_OAUTH_SECRET }}
PHP_WP_OAUTH_CONSUMER: ${{ secrets.PHP_WP_OAUTH_CONSUMER }}
PHP_S2APIKEY: ${{ secrets.PHP_S2APIKEY }}
run: ./vendor/bin/phpunit --coverage-clover coverage.xml 1>&2
- name: Code Coverage
run: /bin/bash <(curl -s https://codecov.io/bash)
- name: Look for weird stuff
if: always()
run: /bin/cat ./CodeCoverage