Skip to content

Commit 7f71365

Browse files
committed
REVERT: back to old integration tests layout
1 parent 2b94fe2 commit 7f71365

File tree

3 files changed

+109
-109
lines changed

3 files changed

+109
-109
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Tests Integration Alternative
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
Validator-Import-test:
8+
runs-on: ubuntu-24.04
9+
name: Validator Import Tests
10+
needs:
11+
- Other-Integration-test
12+
- Execution-Client-test
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: "22"
18+
- run: npm install
19+
working-directory: ./launcher
20+
- run: npm run test:beacon
21+
working-directory: ./launcher
22+
env:
23+
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
24+
IS_DEV: "true"
25+
26+
Execution-Client-test:
27+
runs-on: ubuntu-24.04
28+
name: Execution Client Tests
29+
needs:
30+
- Other-Integration-test
31+
steps:
32+
- uses: actions/checkout@v5
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: "22"
36+
- run: npm install
37+
working-directory: ./launcher
38+
- run: npm run test:service
39+
working-directory: ./launcher
40+
env:
41+
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
42+
IS_DEV: "true"
43+
44+
Other-Integration-test:
45+
runs-on: ubuntu-24.04
46+
name: Other Integration Tests
47+
steps:
48+
- uses: actions/checkout@v5
49+
- uses: actions/setup-node@v4
50+
with:
51+
node-version: "22"
52+
- run: npm install
53+
working-directory: ./launcher
54+
- run: npm run test:other
55+
working-directory: ./launcher
56+
env:
57+
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
58+
IS_DEV: "true"

.github/workflows/test-integration-legacy.yml

Lines changed: 0 additions & 97 deletions
This file was deleted.

.github/workflows/test-integration.yml

Lines changed: 51 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,54 +7,93 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
setup:
11+
runs-on: ubuntu-22.04
12+
outputs:
13+
importTests: ${{ steps.get-import-tests.outputs.tests }}
14+
ELTests: ${{ steps.get-EL-tests.outputs.tests }}
15+
otherTests: ${{ steps.get-other-tests.outputs.tests }}
16+
steps:
17+
- uses: actions/checkout@v5
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: "19"
21+
- run: npm install
22+
working-directory: ./launcher
23+
- id: get-import-tests
24+
name: Get Import Tests
25+
run: echo "::set-output name=tests::$(npx jest --listTests --json | jq -cM '[.[] | select(contains(".int") and contains("Beacon")) | split("/") | .[length-1:][]] | to_entries | map({id:.key, name:.value})')"
26+
working-directory: ./launcher
27+
- id: get-EL-tests
28+
name: Get EL Tests
29+
run: echo "::set-output name=tests::$(npx jest --listTests --json | jq -cM '[.[] | select(contains(".int") and contains("Service") and (contains("Beacon") | not )) | split("/") | .[length-1:][]] | to_entries | map({id:.key, name:.value})')"
30+
working-directory: ./launcher
31+
- id: get-other-tests
32+
name: Get Other Tests
33+
run: echo "::set-output name=tests::$(npx jest --listTests --json | jq -cM '[.[] | select(contains(".int") and (contains("Service") | not )) | split("/") | .[length-1:][]] | to_entries | map({id:.key, name:.value})')"
34+
working-directory: ./launcher
35+
1036
Validator-Import-test:
11-
runs-on: ubuntu-24.04
12-
name: Validator Import Tests
37+
runs-on: ubuntu-22.04
38+
name: test ${{ matrix.test.name }}
1339
needs:
40+
- setup
1441
- Other-Integration-test
1542
- Execution-Client-test
43+
strategy:
44+
matrix:
45+
test: ${{ fromJson(needs.setup.outputs.importTests) }}
1646
steps:
1747
- uses: actions/checkout@v5
1848
- uses: actions/setup-node@v4
1949
with:
20-
node-version: "22"
50+
node-version: "19"
2151
- run: npm install
2252
working-directory: ./launcher
23-
- run: npm run test:beacon
53+
- run: npm run test ${{ matrix.test.name }}
2454
working-directory: ./launcher
2555
env:
2656
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
2757
IS_DEV: "true"
2858

2959
Execution-Client-test:
30-
runs-on: ubuntu-24.04
31-
name: Execution Client Tests
60+
runs-on: ubuntu-22.04
61+
name: test ${{ matrix.test.name }}
3262
needs:
63+
- setup
3364
- Other-Integration-test
65+
strategy:
66+
matrix:
67+
test: ${{ fromJson(needs.setup.outputs.ELTests) }}
3468
steps:
3569
- uses: actions/checkout@v5
3670
- uses: actions/setup-node@v4
3771
with:
38-
node-version: "22"
72+
node-version: "19"
3973
- run: npm install
4074
working-directory: ./launcher
41-
- run: npm run test:service
75+
- run: npm run test ${{ matrix.test.name }}
4276
working-directory: ./launcher
4377
env:
4478
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
4579
IS_DEV: "true"
4680

4781
Other-Integration-test:
48-
runs-on: ubuntu-24.04
49-
name: Other Integration Tests
82+
runs-on: ubuntu-22.04
83+
name: test ${{ matrix.test.name }}
84+
needs:
85+
- setup
86+
strategy:
87+
matrix:
88+
test: ${{ fromJson(needs.setup.outputs.otherTests) }}
5089
steps:
5190
- uses: actions/checkout@v5
5291
- uses: actions/setup-node@v4
5392
with:
54-
node-version: "22"
93+
node-version: "19"
5594
- run: npm install
5695
working-directory: ./launcher
57-
- run: npm run test:other
96+
- run: npm run test ${{ matrix.test.name }}
5897
working-directory: ./launcher
5998
env:
6099
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}

0 commit comments

Comments
 (0)