mirror of
https://github.com/kdeldycke/awesome-falsehood.git
synced 2024-11-27 11:44:39 -05:00
46 lines
1 KiB
YAML
46 lines
1 KiB
YAML
---
|
|
name: Lint
|
|
"on":
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
# Run linter every week to catch regressions from external dependencies.
|
|
- cron: 17 9 * * 1
|
|
|
|
jobs:
|
|
|
|
lint-markdown:
|
|
name: Lint markdown
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.3
|
|
- uses: avto-dev/markdown-lint@v1.4.0
|
|
with:
|
|
config: '.github/markdown-lint.yaml'
|
|
args: './**/*.md'
|
|
|
|
lint-awesome:
|
|
name: Lint Awesome list
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.3
|
|
with:
|
|
# Fetch all history to please linter's age checks.
|
|
fetch-depth: 0
|
|
- run: |
|
|
npx awesome-lint --version
|
|
npx awesome-lint
|
|
|
|
lint-yaml:
|
|
name: Lint YAML files
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2.3.3
|
|
- uses: actions/setup-python@v2.1.4
|
|
- name: Install linter
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install yamllint
|
|
- name: Lint
|
|
run: |
|
|
yamllint .
|