Skip to content

Commit

Permalink
feat: adding github action to run linting automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjmpb committed Aug 29, 2022
1 parent a0580fc commit 12efafb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Test
on: [push]

jobs:
linters:
name: stylelint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Run stylelint
run:
make run_linter
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ update_translations: ## update strings to be translated
compile_translations: ## compile .mo files into .po files
pybabel compile -f -D django -d $(theme)/conf/locale/; \
pybabel compile -f -D djangojs -d $(theme)/conf/locale/


run_linter:
npm install --save-dev stylelint @edx/stylelint-config-edx
npx stylelint "**/*.scss"
4 changes: 4 additions & 0 deletions stylelint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
extends: '@edx/stylelint-config-edx'
};

0 comments on commit 12efafb

Please sign in to comment.