-
Notifications
You must be signed in to change notification settings - Fork 24
43 lines (37 loc) · 948 Bytes
/
test.yml
File metadata and controls
43 lines (37 loc) · 948 Bytes
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
name: CI
on:
pull_request:
push:
branches:
- main
- 'release/**'
jobs:
build_and_test:
name: Test MFT Library
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# macos-13 runners are retired; track the latest supported macOS runner.
- macos-latest
- windows-latest
env:
CARGO_TERM_COLOR: always
NTFS_TESTDATA_REQUIRED: 1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Run tests
run: cargo test --all-targets --all-features