Skip to content

Commit 0c7f32d

Browse files
committed
ci: init
1 parent 4f956c7 commit 0c7f32d

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
labels: bug
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: Thank you for filing a bug report! 🐛
8+
9+
- type: textarea
10+
id: summary
11+
attributes:
12+
label: Summary
13+
description: Please provide a short summary of the bug
14+
validations:
15+
required: true
16+
17+
- type: textarea
18+
id: reproduction-steps
19+
attributes:
20+
label: Reproduction Steps
21+
description: Steps to replicate the bug
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
id: expected-outcome
27+
attributes:
28+
label: Expected Outcome
29+
description: What you expected to happen
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: actual-outcome
35+
attributes:
36+
label: Actual Outcome
37+
description: What actually happened
38+
validations:
39+
required: true
40+
41+
- type: textarea
42+
id: extra-info
43+
attributes:
44+
label: Additional information
45+
description: Please provide any additional information that could be useful
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: Enhancement
3+
about: Suggest an improvement
4+
labels: C-enhancement
5+
---

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Check
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
RUST_BACKTRACE: 1
10+
CARGO_TERM_COLOR: always
11+
CLICOLOR: 1
12+
13+
jobs:
14+
cargo-clippy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions-rust-lang/setup-rust-toolchain@v1
19+
20+
- run: cargo clippy --workspace --all-targets -- -D warnings
21+
22+
cargo-fmt:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions-rust-lang/setup-rust-toolchain@v1
27+
28+
- run: cargo fmt --check
29+
30+
cargo-test:
31+
runs-on: ${{ matrix.os }}
32+
strategy:
33+
matrix:
34+
os: [ubuntu-latest, windows-latest, macos-latest]
35+
# if one OS fails, still test the other ones
36+
continue-on-error: true
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions-rust-lang/setup-rust-toolchain@v1
40+
41+
- run: cargo test --workspace

0 commit comments

Comments
 (0)