chore(chunkserver): Apply pending readability refactor #1194
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: Run Unit and Ganesha Tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
Run-Unit-Tests-and-Ganesha: | |
runs-on: ubuntu-24.04 | |
env: | |
SAUNAFS_TEST_TIMEOUT_MULTIPLIER: 2 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install nfs-ganesha v4.3 from Ubuntu repository | |
run: | | |
sudo apt update | |
sudo apt install -y nfs-common nfs-ganesha nfs-ganesha-vfs | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install SaunaFS dependencies and setup environment | |
run: | | |
sudo mkdir /mnt/hd{b,c,d} | |
cd $GITHUB_WORKSPACE/tests | |
sudo ./setup_machine.sh setup /mnt/hdb /mnt/hdc /mnt/hdd | |
- name: Activate virtual environment and build SaunaFS | |
run: | | |
source /var/lib/saunafs_setup_machine_venv/bin/activate | |
cd $GITHUB_WORKSPACE/tests/ci_build | |
./run-build.sh test | |
- name: Run Unit Tests suite | |
run: | | |
chmod +x $GITHUB_WORKSPACE/tests/ci_build/run-unit-tests.sh | |
$GITHUB_WORKSPACE/tests/ci_build/run-unit-tests.sh | |
- name: Run Ganesha suite | |
run: | | |
sudo chmod o+xr /home/runner/ | |
sudo chown saunafstest:saunafstest /mnt/saunafstest_loop_* | |
sudo chown saunafstest:saunafstest /mnt/hd{b,c,d} | |
chmod +x $GITHUB_WORKSPACE/tests/ci_build/run-ganesha-tests.sh | |
$GITHUB_WORKSPACE/tests/ci_build/run-ganesha-tests.sh |