mirror of
https://github.com/stackrox/kube-linter-action.git
synced 2026-07-04 23:51:37 +00:00
66 lines
1.6 KiB
YAML
Executable File
66 lines
1.6 KiB
YAML
Executable File
# This workflow is provided for testing changes to the action.
|
|
# When developing make sure that "Scan 2 - failing" produces expected kube-linter validation logs.
|
|
|
|
name: kube-linter-action development self-test
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test-scan-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Scan 1 - succeeding
|
|
uses: ./
|
|
with:
|
|
directory: sample/valid-yaml
|
|
config: sample/.kube-linter-config.yaml
|
|
|
|
- name: Scan 2 - failing
|
|
uses: ./
|
|
with:
|
|
directory: sample/invalid-yaml
|
|
config: sample/.kube-linter-config.yaml
|
|
continue-on-error: true
|
|
|
|
test-scan-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Scan 1 - succeeding
|
|
uses: ./
|
|
with:
|
|
directory: sample/valid-yaml
|
|
config: sample/.kube-linter-config.yaml
|
|
|
|
- name: Scan 2 - failing
|
|
uses: ./
|
|
with:
|
|
directory: sample/invalid-yaml
|
|
config: sample/.kube-linter-config.yaml
|
|
continue-on-error: true
|
|
|
|
test-scan-macos:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Scan 1 - succeeding
|
|
uses: ./
|
|
with:
|
|
directory: sample/valid-yaml
|
|
config: sample/.kube-linter-config.yaml
|
|
|
|
- name: Scan 2 - failing
|
|
uses: ./
|
|
with:
|
|
directory: sample/invalid-yaml
|
|
config: sample/.kube-linter-config.yaml
|
|
continue-on-error: true
|