Skip to content

Add alternative POM example #113

Add alternative POM example

Add alternative POM example #113

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: 22
- name: πŸƒ Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9
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 > log.txt 2>&1 &
- name: βŒ› Wait for Frontend
uses: iFaxity/[email protected]
with:
resource: http://localhost:4200
delay: 1000
httpTimeout: 500
timeout: 60000
- 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: πŸ“‹ 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"
- 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: πŸ‘€ Sonar Scan
if: github.ref == 'refs/heads/main'
uses: sonarsource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONARQUBE_HOST }}
- name: πŸ€– Sonar Summary
if: github.ref == 'refs/heads/main'
run: |
{
echo "### πŸ€– Sonar Summary"
echo "${{ vars.SONARQUBE_HOST }}"
} >> $GITHUB_STEP_SUMMARY
- name: πŸ” Upload PNPM Logs
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: PNPM Log
path: log.txt