Update services/121-service/src/payments/fsp-integration/intersolve-v… #5042
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
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: 'Test Service: API Integration' | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- '.github/workflows/test_service_api.yml' | |
- '.github/actions/build-service/action.yml' | |
- 'services/.env.example' | |
- 'services/121-service/**' | |
- 'services/mock-service/**' | |
- '!**.md' | |
push: | |
branches: | |
- 'release/*' | |
- 'hotfix/*' | |
paths: | |
- '.github/workflows/test_service_api.yml' | |
- '.github/actions/build-service/action.yml' | |
- 'services/.env.example' | |
- 'services/121-service/**' | |
- 'services/mock-service/**' | |
- '!**.md' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Set ENV-variables for test-environment | |
run: | | |
cp ./services/.env.example services/.env | |
- name: Run Services with Docker | |
working-directory: ./services | |
run: | | |
docker --log-level 'warn' compose -f docker-compose.yml up -d --quiet-pull --wait --wait-timeout 300 | |
- name: Check that no new migrations are necessary | |
working-directory: ./services | |
run: | | |
docker compose exec 121-service npm run migration:generate src/migration/irrelevant_file_name -- --check | |
- name: Run API tests with Jest | |
working-directory: ./services | |
run: | | |
docker compose exec 121-service npm run test:e2e:all | |
- name: Docker logs | |
if: always() | |
uses: jwalton/gh-docker-logs@v2 |