fix(deps): update all non-major dependencies (#4671) #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v18 | |
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 |