From 2740ad3239998ae63f1751cd9e8bd091255e786e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 25 Jul 2025 16:06:24 +0200 Subject: github: Add workflows for CI execution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .github/ISSUE_TEMPLATE/custom.md | 15 +++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 14 ++++++++++++++ .github/dependabot.yml | 6 ++++++ .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/custom.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yml (limited to '.github') 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 -- cgit v1.2.3