ci: update test workflow #13
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: test | |
on: [push] | |
jobs: | |
unittests: | |
strategy: | |
matrix: | |
os: ["ubuntu:20.04", "ubuntu:22.04"] | |
package: ["knowledge_reasoning/owlapi"] | |
seed_config: ["test/ci/autoproj-config.yml"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Checkout CI Helper | |
uses: actions/checkout@v4 | |
with: | |
repository: 2maz/rock-github-workflow | |
path: rock-github-workflow | |
- name: Build | |
run: docker build -t rock/${{ matrix.os }} -f rock-github-workflow/docker/Dockerfile . | |
--build-arg PKG_NAME=${{ matrix.package }} | |
--build-arg PKG_BRANCH=${{ github.ref_name }} | |
--build-arg BASE_IMAGE=${{ matrix.os }} | |
--build-arg SEED_CONFIG=${{ matrix.seed_config }} | |
- name: Test | |
run: docker run rock/${{ matrix.os }} | |
/bin/bash -c | |
"source /home/docker/rock_test/env.sh; BOOST_TEST_CATCH_SYSTEM_ERRORS=\"no\" make -C /home/docker/rock_test/${{ matrix.package }}/build test" | |