Skip to content

Commit 6a41509

Browse files
authored
Add GitHub Rust CI workflows and templates (#1)
1 parent 159c428 commit 6a41509

3 files changed

Lines changed: 103 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- "*.md"
7+
pull_request:
8+
paths-ignore:
9+
- "*.md"
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
ci:
16+
name: Rust CI
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
matrix:
20+
os: [ubuntu-latest, windows-latest, macos-latest]
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v5
24+
25+
- name: Setup Rust toolchain
26+
uses: dtolnay/rust-toolchain@stable
27+
with:
28+
components: clippy, rustfmt
29+
30+
- name: Setup Cache
31+
uses: Swatinem/rust-cache@v2
32+
33+
- name: Check
34+
run: cargo fmt --all -- --check
35+
36+
- name: Lint
37+
run: cargo clippy --all-targets --all-features -- -D warnings
38+
39+
- name: Build
40+
run: cargo build --workspace --all-targets --all-features --release
41+
42+
- name: Test
43+
env:
44+
RUST_BACKTRACE: 1
45+
run: cargo test --workspace --all-features --all-targets -- --nocapture

0 commit comments

Comments
 (0)