Files
cli/.github/workflows/linter.yml
EvolutionX b366cb4af4 ci: pretty
2022-05-14 09:35:08 +05:30

33 lines
714 B
YAML

name: Lint
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request_target:
branches:
- main
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Set up Node.js
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # tag=v3
with:
node-version: 17
# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: npm i
- name: Run Prettier
run: npm run format