|
19 | 19 | LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }} |
20 | 20 |
|
21 | 21 | jobs: |
22 | | - datil-dev-health-check: |
23 | | - runs-on: ubuntu-latest |
24 | | - environment: Health Check |
25 | | - env: |
26 | | - PRIVATE_KEYS: ${{ secrets.PRIVATE_KEYS }} |
27 | | - steps: |
28 | | - - name: Checkout datil branch |
29 | | - uses: actions/checkout@v4 |
30 | | - with: |
31 | | - ref: ${{ github.event.inputs.datil_branch || 'master' }} |
32 | | - fetch-depth: 1 |
33 | | - |
34 | | - - name: Setup Node.js |
35 | | - uses: actions/setup-node@v4 |
36 | | - with: |
37 | | - node-version: '18' |
38 | | - |
39 | | - - name: Install rust |
40 | | - uses: actions-rs/toolchain@v1 |
41 | | - with: |
42 | | - toolchain: stable |
43 | | - override: true |
44 | | - components: rust-std |
45 | | - |
46 | | - - name: Install wasm-pack |
47 | | - |
48 | | - with: |
49 | | - version: 'latest' |
50 | | - |
51 | | - - name: Install Yarn dependencies |
52 | | - run: yarn install --frozen-lockfile |
53 | | - |
54 | | - - name: Build project |
55 | | - run: yarn build |
56 | | - |
57 | | - - name: Run health check for datil-dev |
58 | | - run: NETWORK=datil-dev yarn ci:health |
59 | | - env: |
60 | | - LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }} |
61 | | - LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }} |
62 | | - |
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 | | - |
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 | | - |
98 | | - - name: Run health check for datil-test |
99 | | - run: NETWORK=datil-test yarn ci:health |
100 | | - env: |
101 | | - LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }} |
102 | | - LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }} |
103 | | - |
104 | 22 | datil-health-check: |
105 | 23 | runs-on: ubuntu-latest |
106 | 24 | environment: Health Check |
| 25 | + strategy: |
| 26 | + fail-fast: false |
| 27 | + matrix: |
| 28 | + network: [datil-dev, datil-test, datil] |
107 | 29 | env: |
108 | 30 | PRIVATE_KEYS: ${{ secrets.PRIVATE_KEYS }} |
109 | 31 | steps: |
|
136 | 58 | - name: Build project |
137 | 59 | run: yarn build |
138 | 60 |
|
139 | | - - name: Run health check for datil |
140 | | - run: NETWORK=datil yarn ci:health |
| 61 | + - name: Run health check for ${{ matrix.network }} |
| 62 | + run: NETWORK=${{ matrix.network }} yarn ci:health |
141 | 63 | env: |
142 | 64 | LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }} |
143 | 65 | LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }} |
|
0 commit comments