blob: 3e4d8b4c9037d8fd5fac2e65afc0828e534e7c63 (
plain)
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
|
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
RUSTFLAGS: "-Dwarnings"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Ensure latest Rust stable
run: |
rustup update stable
rustup default stable
- name: Run tests
env:
MIHI_DATABASE: test.sqlite3
run: |
mkdir -p $HOME/.config/mihi
cp testdata/test.sqlite3 $HOME/.config/mihi/
cargo test --verbose
- name: Run Clippy
run: cargo clippy --all-targets --all-features
|