-
Notifications
You must be signed in to change notification settings - Fork 22
75 lines (73 loc) · 2.83 KB
/
ci.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: CI
on:
push:
branches:
- main
- development
- legacy
pull_request:
branches:
- main
- development
- legacy
env:
NEXT_PUBLIC_CHAIN_ID: NEXT_PUBLIC_CHAIN_ID
NEXT_PUBLIC_CHAIN_NAME: NEXT_PUBLIC_CHAIN_NAME
NEXT_PUBLIC_CHAIN_BECH32_PREFIX: NEXT_PUBLIC_CHAIN_BECH32_PREFIX
NEXT_PUBLIC_CHAIN_RPC_ENDPOINT: NEXT_PUBLIC_CHAIN_RPC_ENDPOINT
NEXT_PUBLIC_CHAIN_REST_ENDPOINT: NEXT_PUBLIC_CHAIN_REST_ENDPOINT
NEXT_PUBLIC_FEE_DENOM: NEXT_PUBLIC_FEE_DENOM
NEXT_PUBLIC_STAKING_DENOM: NEXT_PUBLIC_STAKING_DENOM
NEXT_PUBLIC_SITE_TITLE: NEXT_PUBLIC_SITE_TITLE
NEXT_PUBLIC_SITE_DESCRIPTION: NEXT_PUBLIC_SITE_DESCRIPTION
NEXT_PUBLIC_SITE_URL: NEXT_PUBLIC_SITE_URL
NEXT_PUBLIC_SITE_IMAGE: NEXT_PUBLIC_SITE_IMAGE
NEXT_PUBLIC_DAO_DAO_VERSION: NEXT_PUBLIC_DAO_DAO_VERSION
NEXT_PUBLIC_GAS_PRICE: NEXT_PUBLIC_GAS_PRICE
NEXT_PUBLIC_CHAIN_TXN_URL_PREFIX: NEXT_PUBLIC_CHAIN_TXN_URL_PREFIX
NEXT_PUBLIC_CW20_CODE_ID: 1
NEXT_PUBLIC_DAO_CONTRACT_CODE_ID: 1
NEXT_PUBLIC_C4_GROUP_CODE_ID: 1
NEXT_PUBLIC_STAKE_CW20_CODE_ID: 1
NEXT_PUBLIC_DAO_ADDRESS: NEXT_PUBLIC_DAO_ADDRESS
NEXT_PUBLIC_VOTE_EXTERNAL_URL: NEXT_PUBLIC_VOTE_EXTERNAL_URL
NEXT_PUBLIC_AIRDROP_URL: NEXT_PUBLIC_AIRDROP_URL
NEXT_PUBLIC_SEARCH_URL: NEXT_PUBLIC_SEARCH_URL
NEXT_PUBLIC_SEARCH_API_KEY: NEXT_PUBLIC_SEARCH_API_KEY
jobs:
ci:
name: Lint & Test
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_CHAIN_ID: NEXT_PUBLIC_CHAIN_ID
NEXT_PUBLIC_CHAIN_NAME: NEXT_PUBLIC_CHAIN_NAME
NEXT_PUBLIC_CHAIN_BECH32_PREFIX: NEXT_PUBLIC_CHAIN_BECH32_PREFIX
NEXT_PUBLIC_CHAIN_RPC_ENDPOINT: NEXT_PUBLIC_CHAIN_RPC_ENDPOINT
NEXT_PUBLIC_CHAIN_REST_ENDPOINT: NEXT_PUBLIC_CHAIN_REST_ENDPOINT
NEXT_PUBLIC_FEE_DENOM: NEXT_PUBLIC_FEE_DENOM
NEXT_PUBLIC_STAKING_DENOM: NEXT_PUBLIC_STAKING_DENOM
NEXT_PUBLIC_SITE_TITLE: NEXT_PUBLIC_SITE_TITLE
NEXT_PUBLIC_SITE_DESCRIPTION: NEXT_PUBLIC_SITE_DESCRIPTION
NEXT_PUBLIC_SITE_URL: NEXT_PUBLIC_SITE_URL
NEXT_PUBLIC_SITE_IMAGE: NEXT_PUBLIC_SITE_IMAGE
NEXT_PUBLIC_SITE_ICON_URL: NEXT_PUBLIC_SITE_ICON_URL
NEXT_PUBLIC_DAO_DAO_VERSION: NEXT_PUBLIC_DAO_DAO_VERSION
NEXT_PUBLIC_GAS_PRICE: NEXT_PUBLIC_GAS_PRICE
NEXT_PUBLIC_CW20_CODE_ID: 1
NEXT_PUBLIC_DAO_CONTRACT_CODE_ID: 1
NEXT_PUBLIC_C4_GROUP_CODE_ID: 1
NEXT_PUBLIC_STAKE_CW20_CODE_ID: 1
NEXT_PUBLIC_DAO_ADDRESS: NEXT_PUBLIC_DAO_ADDRESS
NEXT_PUBLIC_VOTE_EXTERNAL_URL: NEXT_PUBLIC_VOTE_EXTERNAL_URL
NEXT_PUBLIC_AIRDROP_URL: NEXT_PUBLIC_AIRDROP_URL
NEXT_PUBLIC_DAO_INDEX: NEXT_PUBLIC_DAO_INDEX
NEXT_PUBLIC_MULTISIG_INDEX: NEXT_PUBLIC_MULTISIG_INDEX
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install
- run: yarn lint
- run: yarn build