|
6 | 6 | - "docs/**"
|
7 | 7 | - "**.md"
|
8 | 8 | - "docs/vercel/**"
|
9 |
| - - ".gitpod.yml" |
10 | 9 | pull_request:
|
11 | 10 | branches: [main]
|
12 | 11 | paths-ignore:
|
13 | 12 | - "docs/**"
|
14 | 13 | - "**.md"
|
15 | 14 | - "docs/vercel/**"
|
16 |
| - - ".gitpod.yml" |
17 | 15 | env:
|
18 | 16 | CARGO_TERM_COLOR: always
|
19 | 17 |
|
20 | 18 | jobs:
|
21 |
| - build: |
22 |
| - runs-on: ${{ matrix.os }} |
| 19 | + CI: |
23 | 20 | strategy:
|
24 | 21 | matrix:
|
25 | 22 | os: [ubuntu-latest, windows-latest, macOS-latest]
|
26 |
| - rust: [stable, nightly] |
| 23 | + runs-on: ${{ matrix.os }} |
27 | 24 |
|
28 | 25 | steps:
|
29 |
| - - name: Checkout repository |
| 26 | + - name: Checkout |
30 | 27 | uses: actions/checkout@v4
|
31 | 28 |
|
32 | 29 | - name: Install Rust
|
33 |
| - uses: dtolnay/rust-toolchain@v1 |
34 |
| - with: |
35 |
| - toolchain: ${{ matrix.rust }} |
36 |
| - |
37 |
| - - name: Cache |
38 |
| - uses: Swatinem/rust-cache@v2 |
| 30 | + uses: actions-rust-lang/setup-rust-toolchain@v1 |
39 | 31 |
|
40 |
| - - name: Build Debug |
41 |
| - run: | |
42 |
| - rustc --version |
43 |
| - cargo build --features=fail-on-deprecated |
| 32 | + - name: Build |
| 33 | + run: cargo build --features=fail-on-deprecated |
44 | 34 |
|
45 | 35 | - name: Run tests
|
46 | 36 | run: cargo test
|
|
50 | 40 |
|
51 | 41 | - name: Run onefetch (with commitgraph)
|
52 | 42 | run: git commit-graph write --no-progress --reachable && cargo run
|
53 |
| - |
54 |
| - lint: |
55 |
| - runs-on: ubuntu-latest |
56 |
| - steps: |
57 |
| - - name: Checkout repository |
58 |
| - uses: actions/checkout@v4 |
59 |
| - |
60 |
| - - name: Install Rust |
61 |
| - uses: dtolnay/rust-toolchain@v1 |
62 |
| - with: |
63 |
| - toolchain: stable |
64 |
| - components: clippy,rustfmt |
65 |
| - |
66 |
| - - name: Run rustfmt |
67 |
| - run: cargo fmt -- --check |
68 |
| - |
69 |
| - - name: Run clippy |
70 |
| - run: cargo clippy |
71 |
| - |
72 |
| - coverage: |
73 |
| - runs-on: ubuntu-latest |
74 |
| - steps: |
75 |
| - - name: Checkout repository |
76 |
| - uses: actions/checkout@v4 |
77 |
| - |
78 |
| - - name: Install Rust |
79 |
| - uses: dtolnay/rust-toolchain@v1 |
80 |
| - with: |
81 |
| - toolchain: stable |
82 |
| - |
83 |
| - - name: Cache |
84 |
| - uses: Swatinem/rust-cache@v2 |
85 |
| - |
86 |
| - - name: Install cargo-tarpaulin |
87 |
| - run: cargo install cargo-tarpaulin |
88 |
| - |
89 |
| - - name: Coverage with tarpaulin |
90 |
| - run: cargo tarpaulin --workspace --out lcov |
91 |
| - |
92 |
| - - name: Upload to codecov.io |
93 |
| - uses: codecov/codecov-action@v5 |
0 commit comments