You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
757 B
YAML
36 lines
757 B
YAML
name: Code Linting
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
Prettier:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install NodeJS
|
|
uses: actions/setup-node@v2
|
|
|
|
- name: Install Prettier
|
|
run: npm install -g prettier
|
|
|
|
- name: Run Prettier --check
|
|
run: prettier --check .
|
|
|
|
EditorConfig:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
- name: Install editorconfig-checker
|
|
run: npm install -g editorconfig-checker
|
|
|
|
- name: Run ECLint check
|
|
run: editorconfig-checker -exclude README.md $(git ls-files | grep -v test)
|