ignore junk website names #9862
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: 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, sockets, opcache, openssl, xmlrpc, gettext, curl, iconv, pcre, lzf, zstd, zip, yaml, pcntl | |
- 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.2.0 phpunit/phpunit:9.*.* phpunit/php-invoker | |
- 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 --enforce-time-limit --default-time-limit 11000 --coverage-clover coverage.xml 1>&2 | |
- name: Code Coverage | |
if: always() | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
uses: codecov/[email protected] | |
- name: Look for weird stuff | |
if: always() | |
run: /bin/cat ./CodeCoverage |