forked from Michael-F-Bryan/mdbook-epub
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 818 Bytes
/
rust.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
name: Rust
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Rust
uses: actions/checkout@v4
- name: Install cargo version
uses: dtolnay/rust-toolchain@stable
- name: Install epub checker
run: sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install -y epubcheck
# - name: Install cargo audit
# run: cargo install cargo-audit
- name: Show rust version
run: cargo --version
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run Clippy
run: cargo clippy -- --no-deps -Dwarnings
# - name: Audit
# run: cargo audit
# - name: Rust format
# run: cargo fmt --check