Skip to content

test: update images #176

test: update images

test: update images #176

Workflow file for this run

name: UI test
on:
push:
branches:
- '**'
jobs:
ui_test:
timeout-minutes: 45
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17.tar.gz
- name: Install dependencies
run: nix-env -if ui-tests/default.nix
- name: Start Docker Compose
working-directory: on-premise-deploy/docker-compose/
run: docker-compose up -d
- name: Wait for Docker Compose and Vault
# TODO: Use a script to ascertain docker health instead of flat wait time
run: sleep 120s
- name: Populate payer transfer data with TTK
run: docker exec mojaloop-testing-toolkit npm run cli -- outbound -i collections/payer-tests/ -e environments/environment.json
- name: Populate payee transfer data with TTK
run: docker exec mojaloop-testing-toolkit npm run cli -- outbound -i collections/payee-tests/ -e environments/environment.json
- name: Install test dependencies
working-directory: ui-tests/tests
run: |-
npm ci
- name: Upgrade browserlist
working-directory: ui-tests/tests
run: |-
npx browserslist@latest --update-db
- name: Run tests
working-directory: ui-tests/tests
run: |-
ENV="local" PM4ML_ENDPOINT="http://localhost:8081" SIM_CORE_CONNECTOR_ENDPOINT="http://localhost:3003" npm run test:headless