-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1 KB
/
wfctl-validate.yml
File metadata and controls
34 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# .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