Skip to content
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3bd4986
fix: add count_self_hosted_runners job to optimize e2e testing based …
Sep 23, 2025
d9b08ec
fix: ensure count_self_hosted_runners job depends on build for proper…
Sep 23, 2025
40e32c5
fix: update cypress run action to use electron browser for consistency
Sep 24, 2025
00e5eec
fix: remove redundant updateCall calls in Calls tests for cleaner code
Sep 25, 2025
ed613cb
Merge branch 'develop' into add-self-hosted-runners
jekabs-karklins Sep 25, 2025
82f2bfa
Merge branch 'remove-flaky-test' into add-self-hosted-runners
Sep 25, 2025
edb530f
fix: rename idx to order for clarity in e2e test matrix and update ru…
Sep 25, 2025
559de0d
fix: remove redundant logout call in PageTable component tests for cl…
Sep 25, 2025
bced579
Merge branch 'remove-flaky-test' into add-self-hosted-runners
Sep 25, 2025
4a924ba
fix: update technique and instrument names to use lorem.word for bett…
Sep 25, 2025
760cee1
Merge branch 'develop' into add-self-hosted-runners
Oct 3, 2025
1bb3dce
fix: revert back changes
Oct 3, 2025
0fac36c
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 7, 2025
f4f2622
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 9, 2025
94c0bc4
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 14, 2025
d69d2bc
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 15, 2025
518f2c5
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 15, 2025
2662cf2
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 15, 2025
04cf461
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 16, 2025
2a968bd
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 16, 2025
861bee8
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 17, 2025
f900978
Merge branch 'develop' into add-self-hosted-runners
jekabs-karklins Oct 23, 2025
b17f941
Merge branch 'develop' into add-self-hosted-runners
jekabs-karklins Oct 27, 2025
7d465bb
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 29, 2025
560c94f
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Oct 29, 2025
4323dd2
Merge branch 'develop' into add-self-hosted-runners
bolmsten Oct 29, 2025
be064a7
Merge branch 'develop' into add-self-hosted-runners
janosbabik Nov 3, 2025
5d135fb
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Nov 4, 2025
0d7dd0d
Merge branch 'develop' into add-self-hosted-runners
yoganandaness Nov 5, 2025
96ab8a8
Merge branch 'develop' into add-self-hosted-runners
jekabs-karklins Nov 8, 2025
4b86abc
Merge branch 'develop' into add-self-hosted-runners
jekabs-karklins Nov 10, 2025
3b0a40e
Merge branch 'develop' into add-self-hosted-runners
jekabs-karklins Nov 10, 2025
1bd6054
Merge branch 'develop' into add-self-hosted-runners
janosbabik Dec 4, 2025
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
48 changes: 45 additions & 3 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,37 +268,78 @@ jobs:
REPO_DIR_NAME=$(basename $GITHUB_WORKSPACE)

npm run test:backend
e2e:

count_self_hosted_runners:
needs: build
runs-on: ubuntu-latest
needs: [resolve_dep, build]
outputs:
idle: ${{ steps.get.outputs.idle }}
steps:
- name: Get idle runner count
id: get
env:
OWNER: ${{ github.repository_owner }}
AUTH: ${{ secrets.GH_API_TOKEN }}
run: |
set -euo pipefail
REPO="${GITHUB_REPOSITORY#*/}"

RESPONSE="$(
curl -sS --fail \
-H "Authorization: Bearer $AUTH" \
"https://api.github.com/repos/$OWNER/$REPO/actions/runners?per_page=100"
)"

IDLE="$(echo "$RESPONSE" | jq '
[ (.runners // [])[]?
| select(.status == "online" and (.busy | not))
| select([.labels[]?.name] | index("self-hosted") and index("Linux") and index("X64"))
] | length
')"
echo "idle=$IDLE" >> "$GITHUB_OUTPUT"

e2e:
needs: [resolve_dep, build, count_self_hosted_runners]

strategy:
fail-fast: false
matrix:
pattern:
- id: ae
order: 0
files: cypress/e2e/[a-e]*.ts
- id: fh
order: 1
files: cypress/e2e/[f-h]*.ts
- id: io
order: 2
files: cypress/e2e/[i-o]*.ts
- id: p-am
order: 3
files: cypress/e2e/p[a-m]*.ts
- id: p-nz
order: 4
files: cypress/e2e/p[n-z]!(oposals)*.ts
- id: proposals
order: 5
files: cypress/e2e/proposals*.ts
- id: rs
order: 6
files: cypress/e2e/[r-s]*.ts
- id: t
order: 7
files: cypress/e2e/t!(emplatesBasic).ts
- id: templateDelete
order: 8
files: cypress/e2e/templatesBasic*.ts
- id: uz
order: 9
files: cypress/e2e/[u-z]*.ts
- id: AZ
order: 10
files: cypress/e2e/[A-Z]*.ts

runs-on: ${{ matrix.pattern.order < needs.count_self_hosted_runners.outputs.idle && 'self-hosted' || 'ubuntu-latest' }}

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -379,6 +420,7 @@ jobs:
- name: Download required repositories
run: |
cd "$GITHUB_WORKSPACE/.."
rm -rf user-office-factory
git clone --depth 1 --branch "${{ needs.resolve_dep.outputs.FACTORY_TAG }}" https://github.com/UserOfficeProject/user-office-factory.git

- name: Run e2e tests stfc
Expand Down
Loading