Run Unit Tests #27
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 Tests | |
on: | |
workflow_run: | |
workflows: | |
- Publish Docker image | |
branches: | |
- v0.4 | |
types: | |
- completed | |
jobs: | |
run_tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
ref: ${{ github.event.workflow_run.head_branch }} | |
- name: run anmaped/rmtld3synth image | |
run: | | |
docker run --rm \ | |
--entrypoint /bin/bash \ | |
-v ${PWD}:/workspace/source:z \ | |
docker.io/anmaped/rmtld3synth:v0.4 \ | |
-c 'cp -r /workspace/source /localsource && cd /localsource && \ | |
eval $(opam env) && \ | |
./configure && make && make tests' |