Merge pull request #1879 from ORNL/staging #3360
This file contains hidden or 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: Unit-Testing | ||
| on: push | ||
| jobs: | ||
| unit-test: | ||
| runs-on: ubuntu-latest | ||
| container: debian:bookworm | ||
| if: ${{ always() }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Update debian | ||
| run: apt update | ||
| - name: Install dependencies | ||
| with: | ||
| submodules: recursive | ||
| fetch-depth: 0 | ||
| run: | | ||
| ./scripts/generate_datafed.sh | ||
| ./external/DataFedDependencies/scripts/install_core_dependencies.sh | ||
| - name: Build | ||
| run: | | ||
| /opt/datafed/dependencies/bin/cmake -S. -B build -DCMAKE_BUILD_TYPE=Debug -DBUILD_WEB_SERVER=OFF | ||
| /opt/datafed/dependencies/bin/cmake --build build -j4 | ||
| - name: Run tests | ||
| run: | | ||
| /opt/datafed/dependencies/bin/cmake --build build --target test | ||