updated diagram name #18
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: Matching Engine Workflow | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: KengoTODA/actions-setup-docker-compose@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ${{ github.workspace }}/apps/matching-engine | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Redis Instance with Docker | |
working-directory: ${{ github.workspace }} | |
run: docker-compose -f "docker-compose.yml" up -d --build | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Stop containers | |
working-directory: ${{ github.workspace }} | |
if: always() | |
run: docker-compose -f "docker-compose.yml" down |