summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2023-01-30 23:16:49 +0100
committerAnne Jan Brouwer <brouwer@annejan.com>2023-01-30 23:16:49 +0100
commitc895e22deaaa533b76c5f15fc88b0e79a5eb8c50 (patch)
tree8fac94f3c444688d6f4697cae69a4d0e4fe4ae85 /.github/workflows
parent7ab85003cac95d9489fc85d67788f7d60694b023 (diff)
Super Lintere added
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/codeql.yml2
-rw-r--r--.github/workflows/linter.yml57
2 files changed, 59 insertions, 0 deletions
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 6b58898e..143d075f 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -54,6 +54,8 @@ jobs:
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
+ - name: Install Qt
+ uses: jurplel/install-qt-action@v2
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
new file mode 100644
index 00000000..402f4a6e
--- /dev/null
+++ b/.github/workflows/linter.yml
@@ -0,0 +1,57 @@
+---
+#################################
+#################################
+## Super Linter GitHub Actions ##
+#################################
+#################################
+name: Lint Code Base
+
+#
+# Documentation:
+# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
+#
+
+#############################
+# Start the job on all push #
+#############################
+on:
+ push:
+ branches-ignore: [master, main]
+ # Remove the line above to run when pushing to master
+ pull_request:
+ branches: [master, main]
+
+###############
+# 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@v3
+ with:
+ # Full git history is needed to get a proper
+ # list of changed files within `super-linter`
+ fetch-depth: 0
+
+ ################################
+ # Run Linter against code base #
+ ################################
+ - name: Lint Code Base
+ uses: github/super-linter@v4
+ env:
+ VALIDATE_ALL_CODEBASE: false
+ # Change to 'master' if your main branch differs
+ DEFAULT_BRANCH: main
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}