Skip to content

fix: tests

fix: tests #23

Workflow file for this run

on:
push:
pull_request:
workflow_dispatch:
name: πŸ§ͺ Continuous Integration
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout
uses: actions/checkout@v3
- name: πŸƒ Install Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: πŸƒ Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: πŸ—οΈ Install Dependencies
run: |
pnpm install
- name: πŸ‘Ÿ Start Frontend and Backend
run: |
docker pull ghcr.io/simplytest/banking-backend:latest
docker run -d -p 5005:5005 -e "SIMPLYTEST_DEMO=ON" --rm --name=Banking-Backend-Demo ghcr.io/simplytest/banking-backend:latest
pnpm run start &
- name: βŒ› Wait for Frontend
uses: iFaxity/[email protected]
with:
resource: http://localhost:4200
- name: πŸ§ͺ Integration Tests
run: |
pnpm run test:int
- name: πŸ§ͺ End To End Tests
run: |
pnpm run test:e2e
- name: πŸ” Check for duplicate reports
id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
skip_after_successful_duplicate: true
concurrent_skipping: "same_content_newer"
- name: πŸ“‹ E2E Test Report
uses: phoenix-actions/test-reporting@v8
if: steps.skip_check.outputs.should_skip != 'true' && (success() || failure())
with:
name: πŸ“‹ E2E Test Report
reporter: java-junit
path: "results/e2e*.xml"
- name: πŸ“‹ Integration Test Report
uses: phoenix-actions/test-reporting@v8
if: steps.skip_check.outputs.should_skip != 'true' && (success() || failure())
with:
name: πŸ“‹ Integration Test Report
reporter: java-junit
path: "results/integration*.xml"