-
Notifications
You must be signed in to change notification settings - Fork 3
/
sub-validate.yml
57 lines (52 loc) · 1.49 KB
/
sub-validate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: ❖ Validate
on:
workflow_call:
inputs:
stage:
description: 'the environment to validate'
required: true
type: string
default: 'staging'
stage-url:
description: 'the URL of the environment'
required: true
type: string
default: https://${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health
jobs:
health-check:
name: Health Check - ${{ inputs.stage }}
runs-on:
labels: ubuntu-latest
environment:
name: ${{ inputs.stage }}
url: ${{ inputs.stage-url }}
steps:
- name: health-check
run: curl "${{ inputs.stage-url }}"
integration-tests:
name: Integration Tests - ${{ inputs.stage }}
runs-on:
labels: ubuntu-latest
environment:
name: ${{ inputs.stage }}
url: ${{ inputs.stage-url }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.PRIVATE_SUBMODULE_ACCESS_TOKEN || github.token }}
- name: "Install Rust ${{ inputs.version }}"
uses: WalletConnect/actions-rs/[email protected]
with:
toolchain: ${{ vars.RUST_VERSION }}
profile: 'default'
override: true
- name: "Run Integration Tests"
uses: WalletConnect/actions-rs/[email protected]
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
RPC_URL: ${{ inputs.stage-url }}
with:
command: test
args: --test integration