Update README and add deployment scripts for JWT Auth Pro #114
This file contains hidden or 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: Integration Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| integration-tests: | |
| name: Integration tests (wp-env + Docker) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Cache npm | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install Node dependencies | |
| run: npm ci --no-audit --no-fund | |
| - name: Install PHP dependencies | |
| uses: php-actions/composer@v6 | |
| with: | |
| php_version: '8.1' | |
| version: 2 | |
| args: --no-interaction --prefer-dist | |
| - name: Start wp-env | |
| run: npm run env:start | |
| - name: Run full test suite via wp-env | |
| run: npm test | |
| - name: Stop wp-env | |
| if: always() | |
| run: npm run env:stop |