Commit ed36033 1 parent 2ae0552 commit ed36033 Copy full SHA for ed36033
File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ # CAMARA Project - workflow configuration to manually run CAMARA OAS rules
3
+ # see https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow
4
+ # 31.01.2024 - initial version
5
+
6
+ name : Spectral manual run
7
+
8
+ on : workflow_dispatch
9
+
10
+ concurrency :
11
+ group : ${{ github.ref }}-${{ github.workflow }}
12
+ cancel-in-progress : true
13
+
14
+ jobs :
15
+ build :
16
+ name : Spectral linting
17
+ runs-on : ubuntu-latest
18
+ permissions :
19
+ # Give the default GITHUB_TOKEN write permission to commit and push, comment issues & post new PR
20
+ # Remove the ones you do not need
21
+ contents : write
22
+ issues : write
23
+ pull-requests : write
24
+ steps :
25
+ # Git Checkout
26
+ - name : Checkout Code
27
+ uses : actions/checkout@v4
28
+ with :
29
+ token : ${{ secrets.GITHUB_TOKEN }}
30
+ fetch-depth : 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances
31
+ - name : Install Spectral
32
+ run : npm install -g @stoplight/spectral
33
+ - name : Install Spectral functions
34
+ run : npm install -g @stoplight/spectral-functions
35
+ - name : Run Spectral linting
36
+ run : spectral lint code/API_definitions/*.yaml --verbose --ruleset .spectral.yml
You can’t perform that action at this time.
0 commit comments