Merge pull request #59 from redhat-best-practices-for-k8s/dependabot/… #160
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: linters | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
js-linter: | |
name: Javascript linter (standard) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Init yarn | |
run: yarn install | |
- name: Run Standard | |
run: yarn standard html/index.js | |
- uses: crate-ci/typos@master | |
with: | |
files: html/* | |
css-linter: | |
name: CSS linter (stylelint) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Init yarn | |
run: yarn install | |
- name: Run stylelint | |
run: yarn stylelint html/*.css | |
html-linter: | |
name: HTML linter (html5validator) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Cyb3r-Jak3/html5validator-action@v7.2.0 | |
with: | |
root: html/ | |
extra: --ignore inline importmap margin |