-
Notifications
You must be signed in to change notification settings - Fork 284
42 lines (35 loc) · 842 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches: ["*"]
paths-ignore:
- "docs/**"
- "**.md"
- "docs/vercel/**"
pull_request:
branches: [main]
paths-ignore:
- "docs/**"
- "**.md"
- "docs/vercel/**"
env:
CARGO_TERM_COLOR: always
jobs:
CI:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: cargo build --features=fail-on-deprecated
- name: Run tests
run: cargo test
- name: Run onefetch
run: cargo run
- name: Run onefetch (with commitgraph)
run: git commit-graph write --no-progress --reachable && cargo run