Skip to content

fix: require phone number when verify sms code #44

fix: require phone number when verify sms code

fix: require phone number when verify sms code #44

Workflow file for this run

name: PHP Composer
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
- 'doc/**'
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
- 'doc/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
php-versions: [7.2, 7.4]
name: PHP ${{ matrix.php-versions }} Test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP Action
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Validate composer.json and composer.lock
run: composer validate --no-check-lock
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-dist
- name: Run test suite with phpunit
env:
LEANCLOUD_API_SERVER: https://wndg0lpt.api.lncldglobal.com
LEANCLOUD_APP_ID: wnDg0lPt0wcYGJSiHRwHBhD4
LEANCLOUD_APP_KEY: u9ekx9HFSFFBErWwyWHFmPDy
LEANCLOUD_APP_MASTER_KEY: ${{ secrets.MASTER_KEY }}
LEANCLOUD_REGION: US
LEANCLOUD_APP_HOST: 127.0.0.1
LEANCLOUD_APP_PORT: 8081
LEANCLOUD_WILDCARD_DOMAIN: lncldglobal.com
LEANCLOUD_APP_ENV: production
run: |
make test_engine &
php -r 'exit(PHP_VERSION_ID >= 70200 ? 0 : 1);' || vendor/bin/phpunit test/Php72ObjectDeprecated.php
vendor/bin/phpunit --coverage-text