瀏覽代碼

Merge pull request #28 from novaspirit/beta

Beta
don 3 年之前
父節點
當前提交
baa76314c5
共有 2 個文件被更改,包括 100 次插入0 次删除
  1. 47 0
      .github/pull_request_template.md
  2. 53 0
      .github/workflows/lint.yml

+ 47 - 0
.github/pull_request_template.md

@@ -0,0 +1,47 @@
+<!-- The title of the pull request should be a short description of what was done.  -->
+
+<!-- You can remove any parts of this template not applicable to your Pull Request.  -->
+
+# Summary
+
+<!-- A short summary describing what was done... -->
+
+# Why This Is Needed
+
+<!-- Explain why this change is needed. Can be omitted if covered in the summary. -->
+
+# What Changed
+
+<!-- A detailed list of all the changes made, broken down by category. -->
+
+## Added
+
+<!-- What was added? -->
+
+## Changed
+
+<!-- Did any functionality change? -->
+
+## Fixed
+
+<!-- Were any bugs fixed? -->
+
+## Removed
+
+<!-- Was anything removed? -->
+
+# Screenshots
+
+<!-- Please include screenshots of any new features to show how it works. -->
+
+# Checklist
+
+<!-- You can erase any parts of this template not applicable to your Pull Request. -->
+- [ ] Have you followed the guidelines in our Contributing document?
+- [ ] Have you checked to ensure there aren't other open [Pull Requests](../../../pulls) for the same update/change?
+- [ ] Does your submission pass tests?
+- [ ] Have you linted your code locally prior to submission?
+- [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
+- [ ] Have you written new tests for your core changes, as applicable?
+- [ ] Have you successfully ran tests with your changes locally?
+- [ ] Have you updated documentation, as applicable?

+ 53 - 0
.github/workflows/lint.yml

@@ -0,0 +1,53 @@
+---
+#################################
+#################################
+## Super 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: [beta, main]
+    # Remove the line above to run when pushing to 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
+        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/slim@v4
+        env:
+          VALIDATE_ALL_CODEBASE: false
+          VALIDATE_JSON: true
+          DEFAULT_BRANCH: main