Merge pull request #3 from dipjyotimetia/dependabot/go_modules/github… #15
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: Tests | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
test: | |
name: Event-Stream | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_BUILDKIT: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Application | |
run: docker-compose up -d | |
- name: Integration Test | |
run: | | |
curl --location 'http://localhost:9050/expense' \ | |
--header 'Content-Type: application/json' \ | |
--data '{ | |
"expense_id": "1234", | |
"user_id": "1234", | |
"category": "1234", | |
"amount": 12, | |
"currency": "AUD", | |
"timestamp": 1621786448000, | |
"description": "Test new", | |
"receipt": "new" | |
}' | |
- name: check logs | |
run: docker compose logs -t -f event-stream |