From 5c86ed2f37b5fd534caefe3f29093614939673a0 Mon Sep 17 00:00:00 2001 From: Ashwin Naren Date: Mon, 29 Dec 2025 15:36:09 -0800 Subject: [PATCH] add CI testing --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1c097e6..82ee8b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,8 +19,14 @@ jobs: uses: actions/checkout@v6 - name: Build dockerfile run: docker build -t moss . + # If all features are disabled - name: Run tests inside docker container - run: docker run moss "/bin/bash" -c "cargo run -r --no-default-features --features ${{ matrix.smp-feature }} -- /bin/usertest" >> out.log + if: ${{ matrix.smp-feature == '' }} + run: docker run moss "/bin/bash" -c "cargo run -r --no-default-features -- /bin/usertest" >> out.log + # If any feature is enabled + - name: Run tests inside docker container + if: ${{ matrix.smp-feature == 'smp' }} + run: docker run moss "/bin/bash" -c "cargo run -r --no-default-features --features "${{ matrix.smp-feature }}" -- /bin/usertest" >> out.log - name: Display test output run: cat out.log - name: Check for success line