-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (39 loc) · 1.01 KB
/
tests.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
name: Build tests
on: [push, pull_request]
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup LLVM
uses: KyleMayes/[email protected]
with:
version: "17"
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- name: Rust stable
run: |
rustup update stable
rustup default stable
- name: Build IrpTransmogrifier
run: |
mvn compile
mvn package
working-directory: irp/tests/IrpTransmogrifier
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose --workspace
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy --workspace --tests --bins -- -D warnings
- name: Run cargo doc
run: cargo doc --workspace --bins