Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
242 commits
Select commit Hold shift + click to select a range
d177c51
Bump RAPyDo to 3.0
mdantonio Dec 8, 2022
d0b5579
Remove Renovate branch limit
mdantonio Dec 8, 2022
fa2a618
Bump cypress-fail-fast to 6.0.0
renovate[bot] Dec 9, 2022
838c07b
Drop support for google-analytics
mdantonio Dec 10, 2022
4554475
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Dec 10, 2022
ff291b7
Bump sentry to 7.24.2
renovate[bot] Dec 10, 2022
5b7014e
# Bump gg-shield to v1.14.1
renovate[bot] Dec 10, 2022
a7d76b4
Bump ng-bootstrap to 13.1.1
renovate[bot] Dec 10, 2022
3c69953
Bump core-js to 3.26.1
renovate[bot] Dec 11, 2022
838e864
Bump ngx-uploadx to 5.4.0
renovate[bot] Dec 11, 2022
b751d03
Bump rxjs to 7.6.0
renovate[bot] Dec 11, 2022
d0e3cb2
Bump start-server-and-test to 1.15.2
renovate[bot] Dec 11, 2022
5f49fa0
Bump angular-cli to 15.0.3
renovate[bot] Dec 11, 2022
ec176f9
Bump angular to 15.0.3
renovate[bot] Dec 11, 2022
f4762e4
Bump ngx-build-plus to 15.0.0
renovate[bot] Dec 11, 2022
8122a3f
Remove deprecated renderModuleFactory removed with Angular 15
mdantonio Dec 11, 2022
d745a04
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Dec 11, 2022
7172ed3
Bump @angular-devkit/architect to 0.1500.3
renovate[bot] Dec 11, 2022
7f125ab
Bump @nguniversal/builders to 15.0.0
renovate[bot] Dec 11, 2022
6ccff5b
Move e2e specs mount outside the /app folder
mdantonio Dec 11, 2022
1ff0fc3
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Dec 11, 2022
452ceb7
Cleaning up karma configuration
mdantonio Dec 17, 2022
77f4cc8
Removed duplicated export renderModule, no longer needed with Angular 15
mdantonio Dec 17, 2022
9a2be8b
Removed unsupported browsers from the browserslist
mdantonio Dec 17, 2022
cc4622a
Disabled teardown.destroyAfterEach for some of the karma tests
mdantonio Dec 17, 2022
b210e4d
Removed obsolete tests.ts file
mdantonio Dec 17, 2022
f603994
Fix cypress coverage webpackage configuration path
mdantonio Dec 17, 2022
436b602
Undo Fix cypress coverage webpackage configuration path
mdantonio Dec 17, 2022
fdf8ed6
# Fix cypress fixture path
mdantonio Dec 17, 2022
d72561f
# Fix cypress fixture path /2
mdantonio Dec 17, 2022
48c1b77
# Bug fix
mdantonio Dec 17, 2022
9ccaab1
# Bump pre-commit hook
renovate[bot] Dec 18, 2022
aab5e61
Bump ng-bootstrap to 14.0.0
renovate[bot] Dec 18, 2022
0782296
Split tests file into three different workflows
mdantonio Dec 18, 2022
7509c07
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Dec 18, 2022
e6bb54a
Split tests file into three different workflows
mdantonio Dec 18, 2022
257a1a1
Bump cypress to 12.1.0
renovate[bot] Dec 18, 2022
89808d5
Dropped core-js dependency
mdantonio Dec 18, 2022
8ecb15e
Dropped angular-polyfills dependency
mdantonio Dec 18, 2022
48b4e94
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Dec 18, 2022
fbf7839
Cleanup of polyfills file
mdantonio Dec 18, 2022
cbba43a
Bump cypress-fail-fast to 7.0.0
renovate[bot] Dec 18, 2022
5475c2a
Bump ngx-toastr to 16.0.1
renovate[bot] Dec 18, 2022
105388a
Bump ng-select to 10.0.1
renovate[bot] Dec 18, 2022
071ce0f
# Debug code
mdantonio Dec 18, 2022
62dd0c8
Bump @types/jasmine to 4.3.1
renovate[bot] Dec 18, 2022
b3f5545
Cypress checkalert is not configured with multiple clicks enabled
mdantonio Dec 18, 2022
65dc914
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Dec 18, 2022
4b92b57
Bump karma-spec-reporter to 0.0.36
renovate[bot] Dec 18, 2022
6022ffa
# Cleanup
mdantonio Dec 18, 2022
cf3e3c5
Added id logout-icon to logout icon to improve testing
mdantonio Dec 18, 2022
2f36799
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Dec 18, 2022
3a77040
Bump rxjs to 7.8.0
renovate[bot] Dec 18, 2022
67420bb
Bump sentry to 7.27.0
renovate[bot] Dec 18, 2022
f2e4261
# Bump angular-cli to 15.0.4
renovate[bot] Dec 18, 2022
538c42c
Bump angular to 15.0.4
renovate[bot] Dec 18, 2022
9f3bc8d
Bump ngx-spinner to 15.0.1 (#275)
renovate[bot] Dec 25, 2022
630f810
Bump sentry to 7.28.1
renovate[bot] Dec 26, 2022
35f406e
Bump cypress to 12.2.0
renovate[bot] Dec 26, 2022
d57ed4f
Support for generic list rendering with formly
mdantonio Jan 2, 2023
135e5e1
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Jan 2, 2023
862e1f2
Bump ng-select to 10.0.3
renovate[bot] Jan 3, 2023
f0bc861
Bump cypress to 12.3.0
renovate[bot] Jan 4, 2023
0abba2e
# Debug code
mdantonio Jan 4, 2023
719be02
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Jan 4, 2023
f8334ed
Logout icon is now a link-button
mdantonio Jan 4, 2023
a47be24
# Debug code
mdantonio Jan 4, 2023
01e4d48
# Reduced number of logouts during cypress tests and replace modal lo…
mdantonio Jan 4, 2023
6bed3c8
# Test fix
mdantonio Jan 4, 2023
e75442f
# Test fix /2
mdantonio Jan 4, 2023
07d5b0b
# Test fix /3
mdantonio Jan 4, 2023
5d84d2c
Dropped last obsolete cy.server command
mdantonio Jan 4, 2023
7338126
# Debug code
mdantonio Jan 5, 2023
8541623
# Syntax fix
mdantonio Jan 5, 2023
d4b5566
Removed unsupported browsers from the browserslist
mdantonio Jan 5, 2023
ee16c44
Aligned all ts targets to es6
mdantonio Jan 5, 2023
6cb860f
Rename deprecated ngx-formly templateOptions to props
mdantonio Jan 5, 2023
cd74a16
Bump ngx-toastr to 16.0.2
renovate[bot] Jan 5, 2023
2033a7e
Bump sentry to 7.29.0
renovate[bot] Jan 6, 2023
88af203
Bump angular-cli monorepo
renovate[bot] Jan 6, 2023
857ce51
# Stub of admin users download test
mdantonio Jan 7, 2023
23b6fc9
Bump ng-bootstrap to 14.0.1
renovate[bot] Jan 14, 2023
26c13ed
Bump sentry to 7.30.0
renovate[bot] Jan 14, 2023
2e30677
# Bump angular-cli
renovate[bot] Jan 14, 2023
4bcfdc0
Bump angular to 15.1.0
renovate[bot] Jan 14, 2023
98a7d90
Bump @nguniversal/builders to 15.1.0
renovate[bot] Jan 14, 2023
eefaafd
Introduce ngx-date-fns as a replacement for ngx-moment
mdantonio Jan 14, 2023
f3cc4f5
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Jan 14, 2023
4d2f7f3
Replace use of moment with date-fns
mdantonio Jan 14, 2023
de9a928
Bump ngx-formly to 6.1.0
renovate[bot] Jan 18, 2023
5542749
Bump sentry to 7.31.1
renovate[bot] Jan 19, 2023
d819bf2
Bump angular monorepo to 15.1.1
renovate[bot] Jan 19, 2023
742748b
# Bump angular-cli monorepo
renovate[bot] Jan 20, 2023
9371c0f
Bump ngx-formly to 6.1.1
renovate[bot] Jan 21, 2023
d7faae8
Bump sentry to 7.32.1
renovate[bot] Jan 24, 2023
f1e7dc3
Bump start-server-and-test to 1.15.3
renovate[bot] Jan 24, 2023
e336499
Bump cypress to 12.4.0
renovate[bot] Jan 26, 2023
1e91a99
Bump cypress to 12.4.1
renovate[bot] Jan 27, 2023
019585c
Bump angular-cli monorepo
renovate[bot] Jan 27, 2023
7705255
Bump angular monorepo to 15.1.2
renovate[bot] Jan 27, 2023
34eb986
Bump sentry to 7.34.0
renovate[bot] Jan 28, 2023
ab85b2a
Bump angular-cli to 15.1.4
renovate[bot] Feb 5, 2023
bc48e37
Bump sentry to 7.36.0
renovate[bot] Feb 5, 2023
864396f
Bump pre-commit hook gitguardian/gg-shield to v1.14.3
renovate[bot] Feb 5, 2023
8a75c14
Bump tslib to 2.5.0
renovate[bot] Feb 6, 2023
4169f05
Bump angular monorepo to 15.1.3
renovate[bot] Feb 6, 2023
0ba783c
Bump angular-cli monorepo
renovate[bot] Feb 9, 2023
a0a6482
Bump typescript to 4.9.5
renovate[bot] Feb 11, 2023
8e44db1
Bump fortawesome to 6.3.0
renovate[bot] Feb 11, 2023
28e4b45
Bump angular monorepo to 15.1.4
renovate[bot] Feb 11, 2023
c457a69
Bump sentry to 7.37.1
renovate[bot] Feb 11, 2023
591339a
Bump cypress to 12.5.1
renovate[bot] Feb 12, 2023
a2c3b73
Bump @sentry/browser to 7.37.2
renovate[bot] Feb 13, 2023
0615d68
Bump angular monorepo to 15.1.5
renovate[bot] Feb 18, 2023
4a99ba2
Bump start-server-and-test to 1.15.4
renovate[bot] Feb 18, 2023
2752377
Bump angular-cli monorepo
renovate[bot] Feb 19, 2023
9b9b50a
# Cleanup
mdantonio Feb 19, 2023
d8d99c5
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Feb 19, 2023
1432961
# Test fix
mdantonio Feb 19, 2023
1cde7af
Bump sentry to 7.38.0
renovate[bot] Feb 19, 2023
e88e035
Bump pre-commit hook gitguardian/gg-shield to v1.14.4
renovate[bot] Feb 23, 2023
ed50a89
# Bump angular-cli monorepo (#316)
renovate[bot] Feb 25, 2023
7da0c57
Bump angular to 15.2.0
renovate[bot] Feb 25, 2023
8c47628
Bump cypress to 12.7.0
renovate[bot] Feb 25, 2023
bed4030
Enable cypress auto-cancel-after-failures option and drop cypress-fai…
mdantonio Feb 25, 2023
091f9da
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Feb 25, 2023
fc1f3c9
Revert "Enable cypress auto-cancel-after-failures option and drop cyp…
mdantonio Feb 25, 2023
e0573bf
Bump @nguniversal/builders to 15.2.0
renovate[bot] Feb 25, 2023
ba1c2c0
Bump start-server-and-test to 1.15.5
renovate[bot] Feb 26, 2023
f2a5941
Bump angular-cli monorepo
renovate[bot] Mar 1, 2023
2054759
Bump angular monorepo to 15.2.1
renovate[bot] Mar 2, 2023
56b09e1
Bump angular-cli monorepo
renovate[bot] Mar 8, 2023
d9959e8
Bump ngx-formly monorepo to 6.1.3
renovate[bot] Mar 9, 2023
8490c45
Bump angular-cli monorepo
renovate[bot] Mar 16, 2023
db0f3d7
Bump @popperjs/core to 2.11.7
renovate[bot] Mar 24, 2023
5d25537
Bump @ng-select/ng-select to 10.0.4
renovate[bot] Mar 24, 2023
4377472
Bump @cypress/code-coverage to 3.10.3
renovate[bot] Apr 3, 2023
01e1aab
Bump angular-cli monorepo
renovate[bot] Apr 12, 2023
da90b11
Bump @cypress/code-coverage to 3.10.4
renovate[bot] Apr 13, 2023
dcbb412
Fix toggle class for password input type
giuseppetrotta May 12, 2023
95d6a05
Bump ngx-formly monorepo to 6.1.6
renovate[bot] May 14, 2023
1e72e21
Bump @nguniversal/builders to 15.2.1
renovate[bot] May 14, 2023
0e74cfa
Bump start-server-and-test to 2.0.0
renovate[bot] May 15, 2023
3647a2d
Add sticky-bottom class to the footer
giuseppetrotta May 16, 2023
9b5745e
Bump cypress-fail-fast to 7.0.1
renovate[bot] May 16, 2023
38b54e6
Bump node-xlsx to 0.21.2
renovate[bot] May 16, 2023
2db17f6
Allow to hide header and footer in 'iframe embedded' mode (#360)
giuseppetrotta May 23, 2023
44ac6dd
Bump rxjs to 7.8.1
renovate[bot] May 23, 2023
ca03f1f
Bump karma to 6.4.2
renovate[bot] May 23, 2023
f1a70ef
Bump ngx-build-plus to 16.0.0
renovate[bot] Aug 13, 2023
3a2219d
Bump sentry to 7.39.0
snyk-bot Aug 13, 2023
e16e0f2
Bump precommit hooks
mdantonio Aug 13, 2023
66d3218
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Aug 13, 2023
6c66cdb
Bump Angular to 15.2.9
renovate[bot] Aug 13, 2023
25b1900
Bump Sentry to 7.63.0
renovate[bot] Aug 14, 2023
3aa5861
Bump cypress to 12.17.3
renovate[bot] Aug 15, 2023
77dd876
Bump date-fns to 2.30.0
renovate[bot] Aug 16, 2023
141a70c
Bump fortawesome to 6.4.2
renovate[bot] Aug 17, 2023
6fa20c6
Bump ng-bootstrap to 14.2.0
renovate[bot] Aug 17, 2023
c355403
Bump ngx-clipboard to 16.0.0
renovate[bot] Aug 18, 2023
0190672
Bump @popperjs to 2.11.8
renovate[bot] Aug 18, 2023
b39c83c
Disable the CookieLaw in iframe mode
giuseppetrotta Sep 4, 2023
878c1e3
# Rewrite cypress utilities to avoid external dependencies
mdantonio Sep 25, 2023
f7813e7
Drop ggshield hook
mdantonio Sep 26, 2023
8ee101f
Bump cypress to 13.2.0
renovate[bot] Sep 26, 2023
b7ecdd4
Enable video recording on Cypress 13
mdantonio Sep 26, 2023
85b0b7b
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Sep 26, 2023
8185e11
Fix validation of nullable fields
giuseppetrotta Sep 26, 2023
f0ac7a5
Drop hiddenlogin use case
mdantonio Oct 3, 2023
72a2bbe
Bump prettier to v3.0.3
renovate[bot] Nov 4, 2023
25440ca
# Lint fix
mdantonio Nov 4, 2023
2d94456
Bump @types/jasmine to 4.6.1
renovate[bot] Nov 4, 2023
d818a72
Bump karma-chrome-launcher to 3.2.0
renovate[bot] Nov 4, 2023
4272493
Bump sentry to 7.77.0
renovate[bot] Nov 4, 2023
d577b35
Bump start-server-and-test to 2.0.1
renovate[bot] Nov 4, 2023
27d39c3
Bump ngx-uploadx to 6.1.0
renovate[bot] Nov 4, 2023
e372665
Bump angular-cli to 15.2.10
renovate[bot] Nov 4, 2023
664eea6
Bump ngx-toastr to 16.2.0
renovate[bot] Nov 5, 2023
af984ab
Bump @cypress/code-coverage to 3.12.8
renovate[bot] Nov 5, 2023
53cdc34
Bump actions/setup-node to v4
renovate[bot] Nov 5, 2023
30d2c8b
Bump actions/checkout to v4
renovate[bot] Nov 5, 2023
8d0bf15
Bump @types/jasmine to 5.1.1
renovate[bot] Nov 5, 2023
baed91f
Bump bootstrap to 5.3.2
renovate[bot] Nov 5, 2023
5617fe2
Bump ngx-formly to 6.2.2
renovate[bot] Nov 5, 2023
4ec5ef5
Bump ng-option-highlight to 11.2.0
renovate[bot] Nov 5, 2023
45474a0
Revert "Bump ng-option-highlight to 11.2.0"
mdantonio Nov 5, 2023
6664839
Bump cypress-fail-fast to 7.0.3
renovate[bot] Nov 9, 2023
a715521
Bump @cypress/code-coverage to 3.12.9
renovate[bot] Nov 9, 2023
9780fbd
Bump start-server-and-test to 2.0.2
renovate[bot] Nov 9, 2023
1a6d278
Bump @types/jasmine to 5.1.2
renovate[bot] Nov 9, 2023
38aebcc
Bump sentry to 7.80.0
renovate[bot] Nov 9, 2023
3abd3c4
Bump karma-coverage to 2.2.1
renovate[bot] Nov 9, 2023
f952c0e
Bump cypress to 13.5.0
renovate[bot] Nov 13, 2023
d43026c
Add customcontrols to the top navbar
giuseppetrotta Nov 14, 2023
64bd81f
# Minor changes
mdantonio Dec 8, 2023
afb1b18
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Dec 8, 2023
c0745ba
# Minor changes /2
mdantonio Dec 8, 2023
1ebb0d9
# Fix branch forcing on tests
mdantonio Dec 8, 2023
15733d6
# Bug fix
mdantonio Dec 8, 2023
cf309af
# Bug fix /2
mdantonio Dec 8, 2023
5c618ea
Bump @types/jasmine to 5.1.4
renovate[bot] Dec 8, 2023
5a203ba
Bump @cypress/code-coverage to 3.12.13
renovate[bot] Dec 9, 2023
dc4d278
Bump start-server-and-test to 2.0.3
renovate[bot] Dec 9, 2023
8a5e04f
Bump cypress-fail-fast to 7.1.0
renovate[bot] Dec 10, 2023
98abab7
Bump prettier to v3.1.0
renovate[bot] Dec 10, 2023
078bd46
Bump tslib to 2.6.2
renovate[bot] Dec 10, 2023
4ca82fa
Bump cypress to 13.6.1
renovate[bot] Dec 10, 2023
0f26ec8
Disable floating labels on radio buttons
mdantonio Dec 16, 2023
396bfc8
Bump actions/setup-python action to v5
renovate[bot] Mar 2, 2024
a1358a1
Bump ngx-uploadx to 6.2.0
renovate[bot] Mar 3, 2024
aa0ce62
Bump fontawesome to 6.5.1
renovate[bot] Mar 3, 2024
2026db4
Bump @cypress/code-coverage to 3.12.26
renovate[bot] Mar 3, 2024
67c251a
Bump bootstrap to 5.3.3
renovate[bot] Mar 3, 2024
a1c1cea
Bump codeql-action action to v3
renovate[bot] Mar 3, 2024
1d4bc1f
Bump cypress to 13.6.6
renovate[bot] Mar 3, 2024
a07cc99
Bump karma to 6.4.3
renovate[bot] Mar 4, 2024
bde9ecb
Bump @cypress/code-coverage to 3.12.28
renovate[bot] Mar 4, 2024
20200c5
Bump sentry to 7.106.0
renovate[bot] Mar 9, 2024
5e4fd52
Bump ngx-formly to 6.3.0
renovate[bot] Mar 9, 2024
720858f
# Document more BS style variables
mdantonio Mar 9, 2024
3a63fab
Merge branch '3.0' of https://github.com/rapydo/rapydo-angular into 3.0
mdantonio Mar 9, 2024
839a410
Bump node-xlsx to 0.23.0
renovate[bot] Mar 9, 2024
7710730
Merge static analysis tools into a single workflow
mdantonio Mar 17, 2024
d67ea2e
# Test
mdantonio Mar 17, 2024
54c726f
Disable floating labels on registration form
mdantonio Apr 7, 2024
244676c
Add multi lang support using ngx-translate
giuseppetrotta Apr 7, 2024
1787b83
# Fix karma tests
mdantonio Apr 7, 2024
090e6ce
# Block service used for cypress to be neo4j only
mdantonio Apr 7, 2024
7972a71
# Fix karma tests for auth service
mdantonio Apr 7, 2024
584226f
# Fix other karma tests
mdantonio Apr 7, 2024
0f20a91
# Fix
mdantonio Apr 7, 2024
677112c
# Complete karma fixes
mdantonio Apr 7, 2024
dedeedb
Merge i18n translations from core and custom
giuseppetrotta Apr 7, 2024
de0f724
# Add empty assets/i18n folder
mdantonio Apr 8, 2024
fc2be3c
# Fix i18n json merge
mdantonio Apr 20, 2024
3cb2427
# Fix cypress flaky test
mdantonio Apr 20, 2024
a5397eb
Pin @types/node to 20.11.1
mdantonio Apr 20, 2024
77dd99f
# Extend bs default styles
mdantonio Apr 20, 2024
87ec484
Update ts target from ES6 to ES2022
mdantonio Apr 20, 2024
eebe47a
Undo Update ts target from ES6 to ES2022
mdantonio Apr 21, 2024
195d168
Update tsconfig.json options
mdantonio Apr 21, 2024
be9a9c1
Bump cypress to 13.8.0
renovate[bot] Apr 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

165 changes: 165 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
name: Cypress

on:
push:
pull_request:
workflow_dispatch:

# Cancel previous running jobs on the same branch in case of new pushs
concurrency:
group: cypress-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60

strategy:
matrix:
stage: [lite, full, totp]

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "16.x"
- name: Install
env:
REF_BRANCH: ${{ github.ref }}
HEAD_REF_BRANCH: ${{ github.head_ref }}

run: |
python -m pip install --upgrade pip
# version is "x.y.0": convert in x.y
export CURRENT_VERSION=$(grep '"version"' src/package.json | awk {'print $2'} | tr -d '", ' | awk -F. {'print $1 "." $2'})
pip install --upgrade --no-cache-dir git+https://github.com/rapydo/do.git@${CURRENT_VERSION}
# auth_services=(postgres neo4j)
# AUTH=${auth_services[$(($RANDOM % ${#auth_services[@]}))]}
# echo "Selected random authentication service = ${AUTH}"
AUTH=neo4j
# Make the environment variable available to next steps
echo "AUTH=${AUTH}" >> $GITHUB_ENV
mkdir rapydo_tests
cd rapydo_tests
rapydo install compose
rapydo --testing create prj --auth ${AUTH} --frontend angular -e ENABLE_ANGULAR_MULTI_LANGUAGE=1 --origin-url https://your_remote_git/your_project.git

# REF contains the branch when commit, but contains refs/pull/XXX/merge on PRs
# with PRs use HEAD_REF
# Strip out refs/heads/ prefix
if [[ ! -z $HEAD_REF_BRANCH ]];
then
BRANCH=${HEAD_REF_BRANCH/refs\/heads\//}
else
BRANCH=${REF_BRANCH/refs\/heads\//}
fi
# Also strip out tags from the branch
BRANCH=${BRANCH/refs\/tags\/v/}
echo "Forcing rapydo-angular to branch ${BRANCH}"
echo " submodules:" >> projects/prj/project_configuration.yaml
echo " rapydo-angular:" >> projects/prj/project_configuration.yaml
echo " branch: \"${BRANCH}\"" >> projects/prj/project_configuration.yaml

# This is to create a commit in the history to fill the BUILD variable
git config --global user.email "tests@rapy.do"
git config --global user.name "RAPyDo"
git add -A && git commit -a -m "Initial commit"

- name: Setup Cypress
uses: rapydo/actions/setup-cypress@v2
if: ${{ github.event_name != 'pull_request'}}
with:
id: ${{ secrets.CYPRESS_PROJECT_ID }}
key: ${{ secrets.CYPRESS_RECORD_KEY }}

- name: Setup Project
run: |
cd rapydo_tests

rapydo --testing init
rapydo add --force component sink

rapydo pull --quiet

if [[ "${{ matrix.stage }}" == "full" ]]; then

rapydo \
-e API_AUTOSTART=1 \
-e PROJECT_TITLE="Your ${AUTH} ${{ matrix.stage }} Project" \
-e ALLOW_TERMS_OF_USE=1 \
-e AUTH_FORCE_FIRST_PASSWORD_CHANGE=1 \
-e AUTH_MIN_PASSWORD_LENGTH=10 \
-e AUTH_MAX_LOGIN_ATTEMPTS=10 \
-e AUTH_MAX_PASSWORD_VALIDITY=120 \
-e AUTH_DISABLE_UNUSED_CREDENTIALS_AFTER=60 \
start

elif [[ "${{ matrix.stage }}" == "totp" ]]; then

rapydo \
-e API_AUTOSTART=1 \
-e PROJECT_TITLE="Your ${AUTH} ${{ matrix.stage }} Project" \
-e ALLOW_TERMS_OF_USE=1 \
-e AUTH_FORCE_FIRST_PASSWORD_CHANGE=1 \
-e AUTH_MIN_PASSWORD_LENGTH=12 \
-e AUTH_MAX_LOGIN_ATTEMPTS=10 \
-e AUTH_MAX_PASSWORD_VALIDITY=120 \
-e AUTH_DISABLE_UNUSED_CREDENTIALS_AFTER=60 \
-e AUTH_SECOND_FACTOR_AUTHENTICATION=1 \
-e AUTH_TOTP_VALIDITY_WINDOW=10 \
start

else

rapydo \
-e API_AUTOSTART=1 \
-e PROJECT_TITLE="Your ${AUTH} ${{ matrix.stage }} Project" \
start

fi

sleep 30
rapydo logs
rapydo shell frontend "yarn install"
rapydo shell frontend "yarn workspaces focus --all"
rapydo shell frontend "reload-types"
rapydo shell frontend "yarn info --recursive --dependents"
rapydo logs

- name: Run Cypress
run: |
cd rapydo_tests

if [[ "${{github.actor}}" == "renovate[bot]" ]] || [[ "${{github.event_name}}" == "pull_request" ]]; then
rapydo shell frontend "yarn run cypress:start:norecord"
else
rapydo shell frontend "yarn run cypress:start:${{ matrix.stage }}"
fi

rapydo shell frontend "npx nyc --all report --reporter=lcov --report-dir /coverage"

- name: Coverage
uses: rapydo/actions/coverage@v2
with:
repository: rapydo_tests/submodules/rapydo-angular
cov_file: rapydo_tests/data/prj/karma/lcov.info

- name: Print backend logs on failure
if: ${{ failure() }}
run: cat rapydo_tests/data/logs/backend-server.log

- name: Print mocked email on failure
if: ${{ failure() }}
run: cat rapydo_tests/data/logs/mock.mail.*.body 2>/dev/null || true

- name: Docker logs on failure
if: failure()
run: |
cd rapydo_tests
rapydo logs
87 changes: 87 additions & 0 deletions .github/workflows/karma.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Karma

on:
push:
pull_request:
workflow_dispatch:

# Cancel previous running jobs on the same branch in case of new pushs
concurrency:
group: karma-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "16.x"
- name: Install
env:
REF_BRANCH: ${{ github.ref }}
HEAD_REF_BRANCH: ${{ github.head_ref }}

run: |
python -m pip install --upgrade pip
# version is "x.y.0": convert in x.y
export CURRENT_VERSION=$(grep '"version"' src/package.json | awk {'print $2'} | tr -d '", ' | awk -F. {'print $1 "." $2'})
pip install --upgrade --no-cache-dir git+https://github.com/rapydo/do.git@${CURRENT_VERSION}
mkdir rapydo_tests
cd rapydo_tests
rapydo install compose
rapydo --testing create prj --auth neo4j --frontend angular --origin-url https://your_remote_git/your_project.git

# REF contains the branch when commit, but contains refs/pull/XXX/merge on PRs
# with PRs use HEAD_REF
# Strip out refs/heads/ prefix
if [[ ! -z $HEAD_REF_BRANCH ]];
then
BRANCH=${HEAD_REF_BRANCH/refs\/heads\//}
else
BRANCH=${REF_BRANCH/refs\/heads\//}
fi
# Also strip out tags from the branch
BRANCH=${BRANCH/refs\/tags\/v/}
echo "Forcing rapydo-angular to branch ${BRANCH}"
echo " submodules:" >> projects/prj/project_configuration.yaml
echo " rapydo-angular:" >> projects/prj/project_configuration.yaml
echo " branch: \"${BRANCH}\"" >> projects/prj/project_configuration.yaml

# This is to create a commit in the history to fill the BUILD variable
git config --global user.email "tests@rapy.do"
git config --global user.name "RAPyDo"
git add -A && git commit -a -m "Initial commit"

- name: Run Karma
run: |
cd rapydo_tests
rapydo --testing init
rapydo pull --quiet frontend
rapydo start frontend
sleep 5
rapydo shell frontend "yarn install"
rapydo shell frontend "yarn workspaces focus --all"
rapydo shell frontend "reload-types"
rapydo shell frontend "yarn info --recursive --dependents"
rapydo shell frontend "yarn run test:single"

- name: Coverage
uses: rapydo/actions/coverage@v2
with:
repository: rapydo_tests/submodules/rapydo-angular
cov_file: rapydo_tests/data/prj/karma/lcov.info

- name: Docker logs on failure
if: failure()
run: |
cd rapydo_tests
rapydo logs
39 changes: 0 additions & 39 deletions .github/workflows/ossar-analysis.yml

This file was deleted.

Loading
Loading