Merge pull request #173 from andypiper/html-validation #96
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: Run ESLint + Prettier | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
jobs: | |
eslint: | |
name: Linting | |
runs-on: ubuntu-latest # on which machine to run | |
steps: | |
- name: Install NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Code Checkout | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Code Linting | |
run: npm run lint |