-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (51 loc) · 3.71 KB
/
linters.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: OpenAPI Spectral Linter
on:
pull_request:
branches:
- main
jobs:
spectral:
runs-on: ubuntu-latest
container:
image: node:14-alpine3.12
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Spectral
run: npm install @stoplight/spectral-cli
- name: Run Spectral Lint on Credentials API
run: npx spectral lint --verbose --ruleset spectral/.spectral-credentials.yaml credentials.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Data Streaming API
run: npx spectral lint --verbose --ruleset spectral/.spectral-datastreaming.yaml data_streaming.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Digital Certificates API
run: npx spectral lint --verbose --ruleset spectral/.spectral-digital_certificates.yaml digital_certificates.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Domains API
run: npx spectral lint --verbose --ruleset spectral/.spectral-domains.yaml domains.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Edge Applications API
run: npx spectral lint --verbose --ruleset spectral/.spectral-edgeapplications.yaml edgeapplications.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Edge Firewall API
run: npx spectral lint --verbose --ruleset spectral/.spectral-edgefirewall.yaml edgefirewall.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Edge Functions API
run: npx spectral lint --verbose --ruleset spectral/.spectral-edgefunctions.yaml edgefunctions.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Edge Functions Instance Edge Firewall API
run: npx spectral lint --verbose --ruleset spectral/.spectral-edgefuncinstedgefirewall.yaml edgefunctionsinstance_edgefirewall.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Edge Node API
run: npx spectral lint --verbose --ruleset spectral/.spectral-edgenode.yaml edgenode.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on IAM API API
run: npx spectral lint --verbose --ruleset spectral/.spectral-iam.yaml iam.yml --display-only-failures || exit 1
- name: Run Spectral Lint on Intelligent DNS API
run: npx spectral lint --verbose --ruleset spectral/.spectral-idns.yaml idns.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Network List API
run: npx spectral lint --verbose --ruleset spectral/.spectral-networklist.yaml networklist.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Personal Tokens API
run: npx spectral lint --verbose --ruleset spectral/.spectral-personaltokens.yaml personal_tokens.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Realtime Purge API
run: npx spectral lint --verbose --ruleset spectral/.spectral-realtimepurge.yaml realtimepurge.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Services API
run: npx spectral lint --verbose --ruleset spectral/.spectral-services.yaml services.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Storage API
run: npx spectral lint --verbose --ruleset spectral/.spectral-storage.yaml storage.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on Variables API
run: npx spectral lint --verbose --ruleset spectral/.spectral-variables.yaml variables.yaml --display-only-failures || exit 1
- name: Run Spectral Lint on WAF API
run: npx spectral lint --verbose --ruleset spectral/.spectral-waf.yaml waf.yaml --display-only-failures || exit 1