diff --git a/.github/workflows/run-unit-tests.yaml b/.github/workflows/run-unit-tests.yaml new file mode 100644 index 00000000..52b05ef7 --- /dev/null +++ b/.github/workflows/run-unit-tests.yaml @@ -0,0 +1,22 @@ +name: Run unit tests + +on: + push: + branches: + - github_actions # todo: set to main branch before merge + +jobs: + build-and-run-unit-tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build Docker image for testing + run: | + docker build --target unittest --tag arbitration_graphs_test . + + - name: Run unit tests in Docker container + run: | + docker run --rm arbitration_graphs_test