mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 13:50:34 +00:00
YAML linting currently runs on Travis. Convert to a GHA, to align with other repos and prepare for future optimizations. Only run against values.yaml and Chart.yaml files, as is currently the case in the Travis-driven workflow. Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
---
|
|
name: Linting
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
dco:
|
|
name: DCO in Commit Message(s)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get PR commits
|
|
id: 'get-pr-commits'
|
|
uses: tim-actions/get-pr-commits@master
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Run DCO check
|
|
uses: tim-actions/dco@master
|
|
with:
|
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
|
|
|
markdown-link-check:
|
|
name: Markdown Links (modified files)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run markdown-link-check
|
|
uses: gaurav-nelson/github-action-markdown-link-check@v1
|
|
with:
|
|
config-file: ".markdownlinkcheck.json"
|
|
check-modified-files-only: "yes"
|
|
|
|
markdownlint:
|
|
name: Markdown
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repository
|
|
uses: actions/checkout@v2
|
|
- name: Run markdownlint
|
|
uses: nosborn/github-action-markdown-cli@v1.1.1
|
|
with:
|
|
files: .
|
|
config_file: ".markdownlint.yml"
|
|
|
|
yaml-lint:
|
|
name: YAML
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repository
|
|
uses: actions/checkout@v2
|
|
- name: Run yamllint
|
|
uses: ibiqlik/action-yamllint@v1
|
|
with:
|
|
file_or_dir: submariner/values.yaml submariner-k8s-broker/values.yaml submariner/Chart.yaml submariner-k8s-broker/Chart.yaml
|
|
config_file: .yamllint.yml
|