forked from ibiqlik/action-yamllint
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.42 KB
/
lint.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
name: Test Action
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get yamllint version
run: yamllint --version
- id: lint-with-config
name: lint with config
uses: ./
with:
file_or_dir: test
config_data: |
extends: default
ignore: nok.yaml
rules:
new-line-at-end-of-file:
level: warning
trailing-spaces:
level: warning
- id: lint-all-no-warnings
name: lint all - no warnings (continue on error)
continue-on-error: true
uses: ./
with:
file_or_dir: test
strict: true
no_warnings: true
- id: lint-all-continue
name: lint all (continue on error)
continue-on-error: true
uses: ./
with:
file_or_dir: test
strict: true
format: standard
- id: default-lint-all
name: default lint all (continue on error)
continue-on-error: true
uses: ./
- id: print-output
if: always()
name: Print output
run: |
echo ${{ steps.lint-with-config.outputs.logfile }}
cat ${{ steps.lint-with-config.outputs.logfile }}
echo ${{ steps.lint-all-continue.outputs.logfile }}
cat ${{ steps.lint-all-continue.outputs.logfile }}