Skip to content

ci: Keep package.json close to the Angular CLI / NestJS CLI defaults #128

ci: Keep package.json close to the Angular CLI / NestJS CLI defaults

ci: Keep package.json close to the Angular CLI / NestJS CLI defaults #128

Workflow file for this run

name: Build
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
id: install_deps
run: npm install
env:
CI: true
- name: Test for server (Unit)
run: npm run test --workspace=server -- --ci --reporters=default --reporters=jest-junit
env:
JEST_JUNIT_OUTPUT_NAME: 'junit-unit.xml'
continue-on-error: true
- name: Test for server (E2E)
run: npm run test:e2e --workspace=server -- --ci --reporters=default --reporters=jest-junit
env:
JEST_JUNIT_OUTPUT_NAME: 'junit-e2e.xml'
continue-on-error: true
- name: Test for client
run: |
npm run build-api-client
npm run test --workspace=client -- --browsers=ChromeHeadless --reporters=progress,junit --watch=false
continue-on-error: true
- name: Upload test report for server (Unit)
uses: mikepenz/action-junit-report@41a3188dde10229782fd78cd72fc574884dd7686
if: always()
with:
check_name: 'Test Report - Server (Unit)'
report_paths: 'server/junit-unit.xml'
fail_on_failure: True
require_tests: True
- name: Upload test report for server (E2E)
uses: mikepenz/action-junit-report@41a3188dde10229782fd78cd72fc574884dd7686
if: always()
with:
check_name: 'Test Report - Server (E2E)'
report_paths: 'server/junit-e2e.xml'
fail_on_failure: True
require_tests: True
- name: Upload test report for client
uses: mikepenz/action-junit-report@41a3188dde10229782fd78cd72fc574884dd7686
if: always()
with:
check_name: 'Test Report - Client'
report_paths: 'client/TESTS-*.xml'
fail_on_failure: True
require_tests: True