Feature/update #14
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: pull_request | |
env: | |
FORCE_COLOR: 1 | |
jobs: | |
lighthouse: | |
name: Lighthouse | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Setup Lighthouse | |
run: npm install -g @lhci/[email protected] | |
- name: Lighthouse Report | |
run: lhci autorun --upload.target=temporary-public-storage --collect.staticDistDir=. | |
webhint: | |
name: Webhint | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Setup Webhint | |
run: | | |
npm install --save-dev [email protected] | |
[ -f .hintrc ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.hintrc | |
- name: Webhint Report | |
run: npx hint . | |
stylelint: | |
name: Stylelint | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Setup Stylelint | |
run: | | |
npm install --save-dev [email protected] [email protected] [email protected] [email protected] | |
[ -f .stylelintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.stylelintrc.json | |
- name: Stylelint Report | |
run: npx stylelint "**/*.{css,scss}" | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "12.x" | |
- name: Setup ESLint | |
run: | | |
npm install --save-dev [email protected] [email protected] [email protected] [email protected] | |
[ -f .eslintrc.json ] || wget https://raw.githubusercontent.com/microverseinc/linters-config/master/html-css-js/.eslintrc.json | |
- name: ESLint Report | |
run: npx eslint . |