Skip to content

Commit c62cd4b

Browse files
committed
test: add a detect flaky workflow and remove auto trigger on push
1 parent da44d1b commit c62cd4b

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Run E2E testes multiple times to detect if any of them is flaky
2+
name: detect-flaky-e2e-tests
3+
on:
4+
workflow_dispatch: {}
5+
jobs:
6+
detect-flaky-e2e-tests:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
id-token: write # needed to interact with GitHub's OIDC Token endpoint.
10+
contents: read
11+
strategy:
12+
max-parallel: 6
13+
matrix:
14+
times: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
15+
version: [12, 14]
16+
package: [logger, metrics, tracing]
17+
steps:
18+
- name: "Checkout"
19+
uses: actions/checkout@v3
20+
- name: "Use NodeJS 14"
21+
uses: actions/setup-node@v3
22+
with:
23+
# Always use version 14 as we use TypeScript target es2020
24+
node-version: 14
25+
- name: "Install npm@8.x"
26+
run: npm i -g npm@next-8
27+
- name: "Install monorepo packages"
28+
# This installs all the dependencies of ./packages/*
29+
# See https://github.com/npm/cli/issues/4475 to see why --foreground-scripts
30+
run: npm ci --foreground-scripts
31+
- name: "Configure AWS credentials"
32+
uses: aws-actions/configure-aws-credentials@v1.6.1
33+
with:
34+
role-to-assume: ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }}
35+
aws-region: eu-west-1
36+
- name: "Run integration tests"
37+
run: |
38+
RUNTIME=nodejs${{ matrix.version }}x npm run test:e2e -w packages/${{ matrix.package }}

.github/workflows/run-e2e-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: run-e2e-tests
22
on:
3-
push:
4-
branches:
5-
- ijemmy/increase-e2e-tests-timeout
63
workflow_dispatch: {}
74
jobs:
85
example-and-package-check:

0 commit comments

Comments
 (0)