-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.12 KB
/
Copy pathci.yml
File metadata and controls
41 lines (32 loc) · 1.12 KB
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
# SPDX-License-Identifier: MPL-2.0
# Presswerk — Rust CI (build, test, lint, format)
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libxdo-dev libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev
- name: Check
run: cargo check --workspace
- name: Test (library crates)
run: cargo test -p presswerk-core -p presswerk-security -p presswerk-document -p presswerk-print
- name: Clippy
run: cargo clippy --workspace -- -D warnings
- name: Format check
run: cargo fmt --all -- --check