Tools: Use the shared actions for consistency between projects #118
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: Static Analysis (Linting) | |
# This workflow is triggered on pushes to trunk, and any PRs. | |
on: | |
push: | |
branches: [trunk] | |
pull_request: | |
jobs: | |
check: | |
name: Lint everything | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Setup | |
uses: WordPress/wporg-repo-tools/.github/actions/setup@trunk | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Lint | |
uses: WordPress/wporg-repo-tools/.github/actions/lint@trunk | |