Refactor CLI (#1) #21
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: Build and Test | |
on: [push, pull_request] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start 5Minds Engine | |
run: docker run --name processcube_engine -d -p 10560:80 5minds/processcube_engine:16.0.0 | |
- name: Install Rust | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y rustc cargo | |
- name: Build project | |
run: cargo build --workspace --all-targets --verbose | |
- name: Run tests | |
run: cargo test --all --verbose | |
- name: Show 5Minds Engine logs if tests failed | |
if: ${{ job.status == 'failure' }} | |
run: docker logs processcube_engine | |
- name: Stop 5Minds Engine | |
run: | | |
docker stop processcube_engine | |
docker rm processcube_engine |