2020-08-06 12:42:45 +01:00
|
|
|
name: Code Linting
|
2021-09-27 08:03:30 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
2020-07-11 13:41:31 +02:00
|
|
|
jobs:
|
2022-03-18 08:27:50 -05:00
|
|
|
Prettier:
|
2020-07-11 13:41:31 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-18 08:27:50 -05:00
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@v2
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2022-03-18 08:27:50 -05:00
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v2
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2022-03-18 08:27:50 -05:00
|
|
|
- name: Install Prettier
|
|
|
|
run: npm install -g prettier
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2022-03-18 08:27:50 -05:00
|
|
|
- name: Run Prettier --check
|
|
|
|
run: prettier --check .
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2020-11-17 09:48:46 -06:00
|
|
|
EditorConfig:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2022-02-15 12:15:27 +01:00
|
|
|
- uses: actions/setup-node@v2
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2020-11-17 09:48:46 -06:00
|
|
|
- name: Install editorconfig-checker
|
|
|
|
run: npm install -g editorconfig-checker
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2020-11-17 09:48:46 -06:00
|
|
|
- name: Run ECLint check
|
2020-12-17 17:20:30 -06:00
|
|
|
run: editorconfig-checker -exclude README.md $(git ls-files | grep -v test)
|