Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add github super linter config file

Rolandb7c7f7864f10
diff --git a/.github/workflow/linter.yml b/.github/workflow/linter.yml
new file mode 100644
index 000000000..047a7cf02
--- /dev/null
+++ b/.github/workflow/linter.yml
@@ -0,0 +1,45 @@
+###########################
+###########################
+## Linter GitHub Actions ##
+###########################
+###########################
+name: Lint Code Base
+
+#
+# Documentation:
+# https://help.github.com/en/articles/workflow-syntax-for-github-actions
+#
+
+#############################
+# Start the job on all push #
+#############################
+on:
+ push:
+ branches-ignore:
+ - 'master'
+
+###############
+# Set the Job #
+###############
+jobs:
+ build:
+ # Name the Job
+ name: Lint Code Base
+ # Set the agent to run on
+ runs-on: ubuntu-latest
+
+ ##################
+ # Load all steps #
+ ##################
+ steps:
+ ##########################
+ # Checkout the code base #
+ ##########################
+ - name: Checkout Code
+ uses: actions/checkout@v2
+
+ ################################
+ # Run Linter against code base #
+ ################################
+ - name: Lint Code Base
+ uses: docker://github/super-linter:v2.1.1
diff --git a/.travis.yml b/.travis.yml
index cb779e39b..4dbabfb68 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -55,8 +55,6 @@ before_script:
# Do the tests
script:
- # Python and Javascript linting
- - gulp lint
# Regular application
- coverage run --source='.' ./manage.py test --parallel