This commit is contained in:
parent
003af71107
commit
f7cdcb1563
60
.github/ISSUE_TEMPLATE/BUG-REPORT.yml
vendored
Normal file
60
.github/ISSUE_TEMPLATE/BUG-REPORT.yml
vendored
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
name: Bug Report
|
||||||
|
description: File a bug report
|
||||||
|
title: "[Bug]: "
|
||||||
|
labels: ["bug/unconfirmed"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for taking the time to fill out this bug report!
|
||||||
|
- type: textarea
|
||||||
|
id: expected-behaviour
|
||||||
|
attributes:
|
||||||
|
label: Expected behaviour
|
||||||
|
description: How do you expect Georm to behave?
|
||||||
|
value: "Something should happen"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: what-happened
|
||||||
|
attributes:
|
||||||
|
label: Actual behaviour
|
||||||
|
description: How does the actual behaviour differ from the expected behaviour?
|
||||||
|
value: "Something else happened"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: package-version
|
||||||
|
attributes:
|
||||||
|
label: Georm version
|
||||||
|
description: What version of Georm are you using?
|
||||||
|
options:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
- something else (please specify)
|
||||||
|
- type: dropdown
|
||||||
|
id: source
|
||||||
|
attributes:
|
||||||
|
label: Library source
|
||||||
|
description: From which source did you get the backend?
|
||||||
|
options:
|
||||||
|
- Crates.io
|
||||||
|
- Git version
|
||||||
|
- something else (please specify)
|
||||||
|
- type: textarea
|
||||||
|
id: rust-version
|
||||||
|
attributes:
|
||||||
|
label: Rust version
|
||||||
|
description: Which version of Rust did you use to build Georm?
|
||||||
|
value: "Rust 1.y.z"
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Relevant code or log output
|
||||||
|
description: Please copy and pase any relevant code or log output. This will be automatically formatted into code, so no need for backticks
|
||||||
|
render: text
|
||||||
|
- type: textarea
|
||||||
|
id: other-info
|
||||||
|
attributes:
|
||||||
|
label: Other relevant information
|
||||||
|
description: Please provide any other information which could be relevant to the issue (PostgreSQL version? Upstream bug?)
|
33
.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
vendored
Normal file
33
.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Feature Request
|
||||||
|
description: Request a new feature
|
||||||
|
title: "[Feature Request]: "
|
||||||
|
labels: ["enhancement"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for taking the time to request a new feature!
|
||||||
|
- type: textarea
|
||||||
|
id: feature-description
|
||||||
|
attributes:
|
||||||
|
label: New feature
|
||||||
|
description: Description of the new feature
|
||||||
|
value: "New automatic method should do thing"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: feature-reason
|
||||||
|
attributes:
|
||||||
|
label: Why this new feature
|
||||||
|
description: Describe why this new feature should be added to Georm
|
||||||
|
value: "I use that workaround very often, this new method will simplify it"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: ideas-implementation
|
||||||
|
attributes:
|
||||||
|
label: Implementation ideas and additional thoughts
|
||||||
|
description: Do you have an idea on how to implement it?
|
||||||
|
value: "It could be implemented doing foo, bar, and baz"
|
||||||
|
validations:
|
||||||
|
required: false
|
47
.github/workflows/ci.yaml
vendored
Normal file
47
.github/workflows/ci.yaml
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
env:
|
||||||
|
DATABASE_URL: postgresql://georm:georm@postgres:5432/georm
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: ${{ github.ref != 'ref/heads/master' }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: catthehacker/ubuntu:js-latest
|
||||||
|
options: --security-opt seccomp=unconfined
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:16-alpine
|
||||||
|
env:
|
||||||
|
POSTGRES_PASSWORD: georm
|
||||||
|
POSTGRES_USER: georm
|
||||||
|
POSTGRES_DB: georm
|
||||||
|
options: >-
|
||||||
|
--health-cmd pg_isready
|
||||||
|
--health-interval 10s
|
||||||
|
--health-timeout 10s
|
||||||
|
--health-retries 5
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install Nix
|
||||||
|
uses: cachix/install-nix-action@v27
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- name: Migrate database
|
||||||
|
run: nix develop --command -- just migrate
|
||||||
|
- name: Formatting check
|
||||||
|
run: nix develop --command -- just format-check
|
||||||
|
- name: Lint
|
||||||
|
run: nix develop --command -- just lint
|
||||||
|
- name: Audit
|
||||||
|
run: nix develop --command -- just audit
|
||||||
|
- name: Tests
|
||||||
|
run: nix develop --command -- just test
|
Loading…
Reference in New Issue
Block a user