aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/ISSUE_TEMPLATE/custom.md15
-rw-r--r--.github/PULL_REQUEST_TEMPLATE.md14
-rw-r--r--.github/dependabot.yml6
-rw-r--r--.github/workflows/ci.yml27
4 files changed, 62 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md
new file mode 100644
index 0000000..beb958e
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/custom.md
@@ -0,0 +1,15 @@
+---
+name: Custom issue template
+about: General issues, both bugs and features.
+title: ''
+labels: ''
+assignees: mssola
+---
+
+### Description
+
+- **Expected behavior**: I expected this to happen!
+- **Actual behavior**: But this happened...
+- **Provide the versions** of:
+ - Git sha.
+ - Toolchain version: (rustc, cargo, et al)
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..c959def
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,14 @@
+Provide a general description of the changes in your pull request. If this pull
+request fixes a known issue, please tag it as well (e.g.: `Fixes #1`). In any
+case:
+
+- [ ] Write a [good commit message](https://chris.beams.io/posts/git-commit/).
+ Extra points if it's in the style of the [Linux
+ kernel](https://docs.kernel.org/process/submitting-patches.html).
+- [ ] Make sure that `cargo build` and `cargo test` continues to work.
+- [ ] Make sure that `cargo clippy --all-targets --all-features` does not report
+ any issues.
+- [ ] The pull request has *only* one subject and a clear title. You are not
+ submitting a pull request with tons of different unrelated commits.
+
+Thanks!
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..53f8242
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,6 @@
+version: 2
+updates:
+ - package-ecosystem: "cargo"
+ directory: "/"
+ schedule:
+ interval: "weekly"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..a2ec6aa
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,27 @@
+name: CI
+
+on:
+ push:
+ branches: [main]
+ pull_request:
+ branches: [main]
+
+env:
+ RUSTFLAGS: "-Dwarnings"
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Ensure latest Rust stable
+ run: |
+ rustup update stable
+ rustup default stable
+
+ - name: Run tests
+ run: cargo test --verbose
+
+ - name: Run Clippy
+ run: cargo clippy --all-targets --all-features