👷(ci) add sharding e2e tests
e2e tests take too long to run. We can easily reduce this time by 2 by adding shards
This commit is contained in:
29
.github/workflows/people.yml
vendored
29
.github/workflows/people.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: show
|
- name: show
|
||||||
run: git log
|
run: git log
|
||||||
- name: Enforce absence of print statements in code
|
- name: Enforce absence of print statements in code
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Check that the CHANGELOG has been modified in the current branch
|
- name: Check that the CHANGELOG has been modified in the current branch
|
||||||
run: git whatchanged --name-only --pretty="" origin/${{ github.event.pull_request.base.ref }}..HEAD | grep CHANGELOG
|
run: git whatchanged --name-only --pretty="" origin/${{ github.event.pull_request.base.ref }}..HEAD | grep CHANGELOG
|
||||||
|
|
||||||
@@ -147,6 +147,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-mails, build-front]
|
needs: [build-mails, build-front]
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
shardIndex: [1, 2, 3, 4]
|
||||||
|
shardTotal: [4]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -196,15 +201,27 @@ jobs:
|
|||||||
run: cd src/frontend/apps/e2e && yarn install
|
run: cd src/frontend/apps/e2e && yarn install
|
||||||
|
|
||||||
- name: Run e2e tests
|
- name: Run e2e tests
|
||||||
run: cd src/frontend/ && yarn e2e:test
|
run: cd src/frontend/ && yarn e2e:test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: playwright-report
|
name: playwright-report-${{ matrix.shardIndex }}
|
||||||
path: src/frontend/apps/e2e/report/
|
path: src/frontend/apps/e2e/report/
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
|
tests-e2e-feedback:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [test-e2e]
|
||||||
|
if: always()
|
||||||
|
steps:
|
||||||
|
- name: All tests ok
|
||||||
|
if: ${{ !(contains(needs.*.result, 'failure')) }}
|
||||||
|
run: exit 0
|
||||||
|
- name: Some tests failed
|
||||||
|
if: ${{ contains(needs.*.result, 'failure') }}
|
||||||
|
run: exit 1
|
||||||
|
|
||||||
build-mails:
|
build-mails:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
defaults:
|
||||||
@@ -226,8 +243,8 @@ jobs:
|
|||||||
- name: Persist mails' templates
|
- name: Persist mails' templates
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: mails-templates
|
name: mails-templates
|
||||||
path: src/backend/core/templates/mail
|
path: src/backend/core/templates/mail
|
||||||
|
|
||||||
lint-back:
|
lint-back:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ and this project adheres to
|
|||||||
- ✨(api) add RELEASE version on config endpoint #459
|
- ✨(api) add RELEASE version on config endpoint #459
|
||||||
- ✨(backend) manage roles on domain admin view
|
- ✨(backend) manage roles on domain admin view
|
||||||
- ✨(frontend) show version number in footer #369
|
- ✨(frontend) show version number in footer #369
|
||||||
|
- 👷(ci) add sharding e2e tests #467
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user