Skip to content

Merge pull request #4355 from hestiacp/dependencies/davidanson-markdo… #9

Merge pull request #4355 from hestiacp/dependencies/davidanson-markdo…

Merge pull request #4355 from hestiacp/dependencies/davidanson-markdo… #9

Workflow file for this run

name: Lint
on:
pull_request:
push:
branches:
- main
jobs:
markdownlint:
name: markdownlint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run markdownlint
uses: DavidAnson/markdownlint-cli2-action@v16
with:
globs: |
*.md
docs/**/*.md
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
severity: error
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install Node packages
run: npm ci --ignore-scripts
- name: Check formatting
run: npx prettier --check .
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install Node packages
run: npm ci --ignore-scripts
- name: Run ESLint
run: npx eslint .
stylelint:
name: Stylelint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install Node packages
run: npm ci --ignore-scripts
- name: Run Stylelint
run: npx stylelint web/css/src/**/*.css