Implement a workflow to check other workflows syntax (#1645)
* add workflow linter workflow * fix linter errors * change step name to clear one * rename job
This commit is contained in:
parent
8125814eed
commit
b8761b500d
5 changed files with 26 additions and 4 deletions
22
.github/workflows/workflow_linter.yaml
vendored
Normal file
22
.github/workflows/workflow_linter.yaml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: "Workflow linter"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- "opened"
|
||||||
|
- "reopened"
|
||||||
|
- "synchronize"
|
||||||
|
- "edited"
|
||||||
|
paths:
|
||||||
|
- ".github/workflows/**"
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
- name: Install yamllint
|
||||||
|
run: sudo apt install -y yamllint
|
||||||
|
- name: Validate workflow yaml files
|
||||||
|
run: yamllint .github/workflows/. -d relaxed -f github --no-warnings
|
Loading…
Add table
Reference in a new issue