diff --git a/.gitea/issue_template/bug-report.yaml b/.gitea/issue_template/bug-report.yaml new file mode 100644 index 0000000..e2e34f8 --- /dev/null +++ b/.gitea/issue_template/bug-report.yaml @@ -0,0 +1,36 @@ +--- +name: Bug report +about: File a bug report +body: + - type: markdown + value: "Thanks for reporting a bug! Please fill form below to proceed." + - type: textarea + id: app-and-os-details + attributes: + label: What OS, deployment type and application version do you use? + placeholder: Featurer v0.1.2 on Rocky Linux 9, deployed via Docker + validations: + required: true + - type: textarea + id: what-happened + attributes: + label: What happened? + placeholder: Tell us what you see! + validations: + required: true + - type: textarea + id: what-expected + attributes: + label: What you expect to happen? + placeholder: It should work! + validations: + required: true + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to these things + options: + - label: I have read the "Submitting issues" section in [CONTRIBUTING.md](/CONTRIBUTING.md) + required: true + visible: [form] diff --git a/.gitea/issue_template/feature-request.yaml b/.gitea/issue_template/feature-request.yaml new file mode 100644 index 0000000..cfbfa30 --- /dev/null +++ b/.gitea/issue_template/feature-request.yaml @@ -0,0 +1,29 @@ +--- +name: Request a feature +about: When something new is needed +body: + - type: markdown + value: "Thanks for requesting a feature! Please fill form below to proceed." + - type: textarea + id: app-and-os-details + attributes: + label: What OS, deployment type and application version do you use? + placeholder: Featurer v0.1.2 on Rocky Linux 9, deployed via Docker + validations: + required: true + - type: textarea + id: what-do-you-want + attributes: + label: Describe feature + placeholder: I want a big button "Make everything great" that makes everything great. + validations: + required: true + - type: checkboxes + id: terms + attributes: + label: Code of Conduct + description: By submitting this issue, you agree to these things + options: + - label: I have read the "Submitting issues" section in [CONTRIBUTING.md](/CONTRIBUTING.md) + required: true + visible: [form] diff --git a/.gitea/workflows/lint-and-test.yaml b/.gitea/workflows/lint-and-test.yaml new file mode 100644 index 0000000..09e46a3 --- /dev/null +++ b/.gitea/workflows/lint-and-test.yaml @@ -0,0 +1,26 @@ +--- +name: "Linting and tests" +run-name: "Linting and tests" +on: + workflow_call: + +jobs: + Linting: + runs-on: "ubuntu-22.04" + steps: + - name: "checkout source" + uses: actions/checkout@v4 + - name: "lint" + uses: docker://code.pztrn.name/containers/go-toolbox:v4 + with: + command: "task lint" + + Tests: + runs-on: "ubuntu-22.04" + steps: + - name: "checkout source" + uses: actions/checkout@v4 + - name: "tests" + uses: docker://code.pztrn.name/containers/go-toolbox:v4 + with: + command: "task test" diff --git a/.gitea/workflows/on-push.yaml b/.gitea/workflows/on-push.yaml new file mode 100644 index 0000000..60ad342 --- /dev/null +++ b/.gitea/workflows/on-push.yaml @@ -0,0 +1,10 @@ +--- +name: "Linting and tests" +run-name: "Linting and tests" +on: + - push + +jobs: + LintAndTest: + uses: ./.gitea/workflows/lint-and-test.yaml + secrets: inherit