File: ci.yml

package info (click to toggle)
rust-bitvec-helpers 4.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 132 kB
  • sloc: makefile: 4
file content (35 lines) | stat: -rw-r--r-- 723 bytes parent folder | download
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
name: CI

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  ci:
    name: Check, test, rustfmt and clippy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install Rust, clippy and rustfmt
        uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy, rustfmt

      - name: Check
        run: |
          cargo check --workspace --all-features

      - name: Test
        run: |
          cargo test --workspace --all-features

      - name: Rustfmt
        run: |
          cargo fmt --all --check

      - name: Clippy
        run: |
          cargo clippy --workspace --all-features --all-targets --tests -- --deny warnings