Merge pull request #28 from CCI-MOC/test-cleanup #14
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: test-build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Clang 17 | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 17 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
make install-deps | |
- name: Build | |
run: | | |
make debug | |
- name: Install Ceph | |
run: | | |
sudo ./ci/setup_ceph.sh | |
sudo ceph osd pool create pone | |
- name: Run tests | |
run: | | |
mkdir -p /tmp/lsvd-read | |
mkdir -p /tmp/lsvd-write | |
cd build-dbg | |
sudo meson test | |
sudo ./imgtool --create --size 1g --pool pone test-img | |
- name: Logs | |
if: always() | |
run: | | |
cat build-dbg/meson-logs/testlog.txt |