2020-10-22 12:23:39 +02:00
|
|
|
name: Test Action
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-08-10 19:47:03 +02:00
|
|
|
|
|
|
|
- id: lint-with-config
|
|
|
|
name: lint with config
|
2020-10-22 12:23:39 +02:00
|
|
|
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
|
|
|
|
|
2021-08-10 19:47:03 +02:00
|
|
|
- id: lint-all-no-warnings
|
|
|
|
name: lint all - no warnings (continue on error)
|
2021-05-26 08:56:08 +02:00
|
|
|
continue-on-error: true
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
file_or_dir: test
|
|
|
|
strict: true
|
|
|
|
no_warnings: true
|
|
|
|
|
2021-08-10 19:47:03 +02:00
|
|
|
- id: lint-all-continue
|
|
|
|
name: lint all (continue on error)
|
2020-10-22 12:23:39 +02:00
|
|
|
continue-on-error: true
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
file_or_dir: test
|
|
|
|
strict: true
|
2021-08-10 19:47:03 +02:00
|
|
|
|
2021-08-19 08:46:59 +02:00
|
|
|
- id: default-lint-all
|
|
|
|
name: default lint all (continue on error)
|
2021-08-18 15:23:29 +02:00
|
|
|
continue-on-error: true
|
|
|
|
uses: ./
|
2021-08-19 08:46:59 +02:00
|
|
|
|
2021-08-10 19:47:03 +02:00
|
|
|
- id: print-output
|
|
|
|
name: Print output
|
|
|
|
run: |
|
|
|
|
echo ${{ steps.lint-with-config.outputs.logfile }}
|
|
|
|
cat ${{ steps.lint-with-config.outputs.logfile }}
|