Merge branch 'main' into CU-86c11rv16_automated-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 Climate Mediator Tests | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install modules | |
run: npm i | |
# Set up Docker Compose | |
- name: Set up Docker Compose | |
uses: docker/setup-buildx-action@v3 | |
# Start Docker Compose services | |
- name: Start services with Docker Compose | |
run: docker compose up -d | |
- name: Run tests | |
run: npm run test | |
- name: Tear down services | |
if: always() | |
run: docker compose down |