ci: fix Layer 3b verify-capabilities wiring + bump setup-wfctl to v0.… #24
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
| # .github/workflows/wfctl-validate.yml | |
| name: wfctl strict contracts | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main, master] | |
| jobs: | |
| wfctl-strict-contracts: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check plugin.json and plugin.contracts.json exist | |
| run: | | |
| if [ ! -f plugin.json ]; then | |
| echo "::error::plugin.json is missing — add a plugin manifest to enable strict contract validation" | |
| exit 1 | |
| fi | |
| if [ ! -f plugin.contracts.json ]; then | |
| echo "::error::plugin.contracts.json is missing — add a contracts file to pass strict contract validation" | |
| exit 1 | |
| fi | |
| - uses: GoCodeAlone/setup-wfctl@bcd880980f5bbe8d192d0c20ff6279d25331f956 | |
| with: | |
| version: latest | |
| token: ${{ secrets.RELEASES_TOKEN }} | |
| - name: Validate strict plugin contracts | |
| run: wfctl plugin validate --file plugin.json --strict-contracts |