feat(mi): Implement get activity flow (M2-6521) #657
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: Automated tests | |
on: [pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: KengoTODA/actions-setup-docker-compose@v1 | |
with: | |
version: '2.23.3' | |
- name: "Running tests" | |
run: | | |
cp .env.default .env | |
echo -e "\nRABBITMQ__USE_SSL=False" >> .env | |
docker compose up -d | |
make dtest | |
on-failure: | |
runs-on: ubuntu-latest | |
if: ${{ always() && (needs.tests.result == 'failure' || needs.tests.result == 'timed_out') }} | |
needs: | |
- tests | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Send Slack message on failure" | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_COLOR: failure | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL_TEST_WORKFLOW }} | |
SLACK_TITLE: Run Unit Tests | |
SLACK_MESSAGE: 'Error when executing Unit tests!' | |
on-success: | |
runs-on: ubuntu-latest | |
if: ${{ always() && (needs.tests.result == 'success') }} | |
needs: | |
- tests | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Send Slack message on success" | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_COLOR: success | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL_TEST_WORKFLOW }} | |
SLACK_TITLE: Run Unit Tests | |
SLACK_MESSAGE: 'Unit tests performed successfully!' |