New task provider: Check SPF, DKIM, DMARC #344
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: 'WordPress.org Plugin Check' | |
| on: # rebuild any PRs and main branch changes | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| coverage: none | |
| tools: wp-cli | |
| - name: Install latest version of dist-archive-command | |
| run: wp package install wp-cli/dist-archive-command:@stable | |
| - name: Build plugin | |
| run: | | |
| wp dist-archive . ./${{ github.event.repository.name }}.zip | |
| mkdir build | |
| unzip ${{ github.event.repository.name }}.zip -d build | |
| - name: Run plugin check | |
| uses: wordpress/[email protected] | |
| with: | |
| build-dir: './build/${{ github.event.repository.name }}' | |
| exclude-checks: | | |
| direct_file_access |