-
Notifications
You must be signed in to change notification settings - Fork 198
34 lines (29 loc) · 860 Bytes
/
validator.yaml
File metadata and controls
34 lines (29 loc) · 860 Bytes
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
name: Plugins manifest validation
on:
[push, pull_request]
jobs:
skip_check_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
skip_after_successful_duplicate: 'true'
paths: '["plugins/*.json"]'
validate_plugin_manifest:
needs: skip_check_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
pip install -r ./ci/envs/requirements-validator.txt
- name: Validate plugin manifest file
run: |
pytest ./ci/src/validator.py