mirror of
https://github.com/actions/runner-images.git
synced 2025-12-25 02:47:41 +08:00
* Exclude readmes from the linter * Add env variable with exclusion to the linter yml * Rename Ubuntu readmes to correspond with the other images * Remove trailing space in ubuntu software generator * Rename Ubuntu1804-README.md to Ubuntu1804-Readme.md * Rename Ubuntu2004-README.md to Ubuntu2004-Readme.md
37 lines
799 B
YAML
37 lines
799 B
YAML
# CI Validation
|
|
|
|
name: Linter
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
paths:
|
|
- '**.json'
|
|
- '**.md'
|
|
- '**.sh'
|
|
|
|
jobs:
|
|
build:
|
|
name: Lint JSON & MD files
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Lint Code Base
|
|
uses: github/super-linter/slim@v4
|
|
env:
|
|
VALIDATE_ALL_CODEBASE: false
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
VALIDATE_JSON: true
|
|
VALIDATE_MARKDOWN: true
|
|
DEFAULT_BRANCH: ${{ github.base_ref }}
|
|
FILTER_REGEX_EXCLUDE: .*images/*/.*-Readme.md
|
|
|
|
- name: Checking shebang lines in MacOS and Ubuntu releases.
|
|
run: ./images.CI/shebang-linter.ps1
|
|
shell: pwsh
|