Exclude file_type checks when running Plugin Check as a GitHub Action #7
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: 'Plugin Check' | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- trunk | |
- 'releases/*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run plugin check | |
uses: swissspidy/wp-plugin-check-action@v1 | |
with: | |
exclude-checks: 'trademarks,file_type' | |
exclude-directories: '.github,bin,vendor' | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |