Skip to content

Commit 50bb3e7

Browse files
committed
fix(health-check): restructure workflow to have three separate jobs
1 parent a651a0c commit 50bb3e7

File tree

1 file changed

+71
-1
lines changed

1 file changed

+71
-1
lines changed

.github/workflows/health-checks.yml

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919
LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }}
2020

2121
jobs:
22-
datil-health-check:
22+
datil-dev-health-check:
2323
runs-on: ubuntu-latest
2424
environment: Health Check
2525
env:
@@ -60,12 +60,82 @@ jobs:
6060
LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }}
6161
LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }}
6262

63+
datil-test-health-check:
64+
runs-on: ubuntu-latest
65+
environment: Health Check
66+
env:
67+
PRIVATE_KEYS: ${{ secrets.PRIVATE_KEYS }}
68+
steps:
69+
- name: Checkout datil branch
70+
uses: actions/checkout@v4
71+
with:
72+
ref: ${{ github.event.inputs.datil_branch || 'master' }}
73+
fetch-depth: 1
74+
75+
- name: Setup Node.js
76+
uses: actions/setup-node@v4
77+
with:
78+
node-version: '18'
79+
80+
- name: Install rust
81+
uses: actions-rs/toolchain@v1
82+
with:
83+
toolchain: stable
84+
override: true
85+
components: rust-std
86+
87+
- name: Install wasm-pack
88+
uses: jetli/[email protected]
89+
with:
90+
version: 'latest'
91+
92+
- name: Install Yarn dependencies
93+
run: yarn install --frozen-lockfile
94+
95+
- name: Build project
96+
run: yarn build
97+
6398
- name: Run health check for datil-test
6499
run: NETWORK=datil-test yarn ci:health
65100
env:
66101
LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }}
67102
LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }}
68103

104+
datil-health-check:
105+
runs-on: ubuntu-latest
106+
environment: Health Check
107+
env:
108+
PRIVATE_KEYS: ${{ secrets.PRIVATE_KEYS }}
109+
steps:
110+
- name: Checkout datil branch
111+
uses: actions/checkout@v4
112+
with:
113+
ref: ${{ github.event.inputs.datil_branch || 'master' }}
114+
fetch-depth: 1
115+
116+
- name: Setup Node.js
117+
uses: actions/setup-node@v4
118+
with:
119+
node-version: '18'
120+
121+
- name: Install rust
122+
uses: actions-rs/toolchain@v1
123+
with:
124+
toolchain: stable
125+
override: true
126+
components: rust-std
127+
128+
- name: Install wasm-pack
129+
uses: jetli/[email protected]
130+
with:
131+
version: 'latest'
132+
133+
- name: Install Yarn dependencies
134+
run: yarn install --frozen-lockfile
135+
136+
- name: Build project
137+
run: yarn build
138+
69139
- name: Run health check for datil
70140
run: NETWORK=datil yarn ci:health
71141
env:

0 commit comments

Comments
 (0)