Run tests in CI #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
run_tests: | |
name: Tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install Rustup | |
run: sudo su - & curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
- name: Install dependencies | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: dkms cryptsetup xfs xfsprogs | |
version: 1.0 | |
- name: Check cryptsetup enabled | |
run: cryptsetup benchmark -c aes-xts-plain64 -s 512 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Env | |
run: echo $PATH | |
- name: Checkout device-mapper-tests | |
uses: actions/checkout@v4 | |
with: | |
repository: akiradeveloper/device-mapper-tests | |
ref: master | |
path: tests | |
- name: Checkout dm-writeboost-tools | |
uses: actions/checkout@v4 | |
with: | |
repository: akiradeveloper/dm-writeboost-tools | |
ref: master | |
path: tools | |
- name: Install dm-writeboost-tools | |
working-directory: tools | |
run: sudo -u root cargo install | |
- name: Test DM (non-writeboost) | |
working-directory: tests/device-mapper-tests | |
run: sudo -E cargo test -- --test-threads=1 | |
- name: Checkout dm-writeboost | |
uses: actions/checkout@v4 | |
with: | |
repository: akiradeveloper/dm-writeboost | |
ref: master | |
path: module | |
- name: Install dm-writeboost target | |
working-directory: module | |
run: sudo make install | |
- name: Insmod dm-writeboost | |
run: sudo modprobe dm-writeboost | |