forked from agama-project/agama
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (38 loc) · 1.12 KB
/
migrate-wicked-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
43
44
45
46
47
48
49
50
51
52
53
name: "migrate-wicked CI"
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
rust_ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./rust/migrate-wicked
strategy:
fail-fast: false
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Install toolchain
run: rustup toolchain install stable
- name: Install dependencies
run: sudo apt install libclang-dev libpam-dev
- name: Install cargo-binstall
uses: taiki-e/install-action@v2
with:
tool: cargo-binstall
- name: Install tarpaulin
run: cargo-binstall --no-confirm cargo-tarpaulin
- name: Unit tests
run: cargo tarpaulin --color always --out xml
- name: Lint tests
run: cargo fmt --all -- --check
- name: Cargo clippy
run: cargo clippy -- --no-deps -D warnings
- name: Cargo clippy on unit tests
run: cargo clippy -- --no-deps --cfg test -A unused_imports -D warnings
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
with:
base-path: ./rust
format: cobertura