feat: Add latest pending/approved invitation data to respondents endpoints (M2-6747) #676
Workflow file for this run
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!' |