Revalidation: If 2FA isn't setup, don't return incorrect data. See #283 #995
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: Test | |
# This workflow is triggered on pushes to trunk, and any PRs. | |
on: | |
push: | |
branches: [trunk] | |
pull_request: | |
jobs: | |
lint: | |
name: Test | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Setup PHP and Composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
tools: composer:v2 | |
- name: Install NPM dependencies | |
run: yarn | |
- name: Start the Docker testing environment | |
run: yarn wp-env start --xdebug=coverage | |
- name: Setup environment tools | |
run: yarn setup:tools | |
- name: Test PHP | |
run: yarn test | |
- name: Test JS | |
run: yarn test:js |