Skip to content

Commit 6eef0b1

Browse files
authored
Merge pull request #850 from LIT-Protocol/inf-607-github-ci-e2e-tests
[INF-607] Follow Up: Add workflow to e2e Tests
2 parents 640372c + 519bd63 commit 6eef0b1

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

.github/workflows/health-checks.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,14 @@ env:
2121
jobs:
2222
datil-health-check:
2323
runs-on: ubuntu-latest
24-
strategy:
25-
fail-fast: false
26-
matrix:
27-
network: [datil-dev, datil-test, datil]
28-
max-parallel: 1
2924
env:
3025
PRIVATE_KEYS: ${{ secrets.PRIVATE_KEYS }}
3126
steps:
3227
- name: Checkout datil branch
3328
uses: actions/checkout@v4
3429
with:
3530
ref: ${{ github.event.inputs.datil_branch || 'datil' }}
31+
fetch-depth: 1
3632

3733
- name: Setup Node.js
3834
uses: actions/setup-node@v4
@@ -42,31 +38,39 @@ jobs:
4238
- name: Install Yarn dependencies
4339
run: yarn install --frozen-lockfile
4440

45-
- name: Run health check for ${{ matrix.network }}
46-
run: NETWORK=${{ matrix.network }} yarn test:health
41+
- name: Run health check for datil-dev
42+
run: NETWORK=datil-dev yarn test:health
43+
44+
- name: Run health check for datil-test
45+
run: NETWORK=datil-test yarn test:health
46+
47+
- name: Run health check for datil
48+
run: NETWORK=datil yarn test:health
4749

4850
naga-health-check:
4951
runs-on: ubuntu-latest
5052
needs: datil-health-check
51-
strategy:
52-
fail-fast: false
53-
matrix:
54-
network: [naga-dev, naga-staging, naga-test]
55-
max-parallel: 1
5653
env:
5754
LIVE_MASTER_ACCOUNT: ${{ secrets.LIVE_MASTER_ACCOUNT }}
5855
LIT_YELLOWSTONE_PRIVATE_RPC_URL: ${{ vars.LIT_YELLOWSTONE_PRIVATE_RPC_URL }}
5956
steps:
6057
- name: Checkout naga branch
6158
uses: actions/checkout@v4
6259
with:
63-
ref: ${{ github.event.inputs.naga_branch || 'naga' }}
60+
ref: ${{ github.event.inputs.naga_branch || 'master' }}
61+
fetch-depth: 1
6462

6563
- name: Setup Bun
6664
uses: oven-sh/setup-bun@v1
6765

6866
- name: Install Bun dependencies
6967
run: bun install --frozen-lockfile
7068

71-
- name: Run health check for ${{ matrix.network }}
72-
run: NETWORK=${{ matrix.network }} bun run test:health
69+
- name: Run health check for naga-dev
70+
run: NETWORK=naga-dev bun run test:health
71+
72+
- name: Run health check for naga-staging
73+
run: NETWORK=naga-staging bun run test:health
74+
75+
- name: Run health check for naga-test
76+
run: NETWORK=naga-test bun run test:health

0 commit comments

Comments
 (0)