forked from cerc-io/laconic-sdk
		
	first pass running tests from sdk side
This commit is contained in:
		
							parent
							
								
									fc61a32ea9
								
							
						
					
					
						commit
						31e1ccafcc
					
				
							
								
								
									
										43
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,43 @@ | |||||||
|  | name: Tests | ||||||
|  | on: | ||||||
|  |   pull_request: | ||||||
|  |   push: | ||||||
|  |     branches: | ||||||
|  |       - main | ||||||
|  |       - release/** | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  |   sdk_tests: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v3 | ||||||
|  |       - name: Checkout laconicd | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |         with: | ||||||
|  |           path: "./laconicd/" | ||||||
|  |           repository: cerc-io/laconicd | ||||||
|  |           fetch-depth: 0 | ||||||
|  |           ref: main | ||||||
|  |       - name: Environment | ||||||
|  |         run: ls -tlh && env | ||||||
|  |       - name: build containers scripts | ||||||
|  |         working-directory: laconicd/tests/sdk_tests | ||||||
|  |         run: ./build-laconicd-container.sh | ||||||
|  |       - name: start containers | ||||||
|  |         working-directory: laconicd/tests/sdk_tests | ||||||
|  |         run: docker compose up -d laconicd | ||||||
|  |       - name: run ALL tests | ||||||
|  |         run: | | ||||||
|  |           laconicd_key=$( docker compose exec laconicd echo y | docker compose exec laconicd laconicd keys export mykey --unarmored-hex --unsafe ) | ||||||
|  |         # Set parameters for the test suite | ||||||
|  |           cosmos_chain_id=laconic_9000-1 | ||||||
|  |           laconicd_rest_endpoint=http://laconicd:1317 | ||||||
|  |           laconicd_gql_endpoint=http://laconicd:9473/api | ||||||
|  |           # Run tests | ||||||
|  |           sleep 30s | ||||||
|  |           COSMOS_CHAIN_ID=${cosmos_chain_id} LACONICD_REST_ENDPOINT=${laconicd_rest_endpoint} LACONICD_GQL_ENDPOINT=${laconicd_gql_endpoint} PRIVATE_KEY=${laconicd_key} yarn test | ||||||
|  |           COSMOS_CHAIN_ID=${cosmos_chain_id} LACONICD_REST_ENDPOINT=${laconicd_rest_endpoint} LACONICD_GQL_ENDPOINT=${laconicd_gql_endpoint} PRIVATE_KEY=${laconicd_key} yarn test:auctions | ||||||
|  |           COSMOS_CHAIN_ID=${cosmos_chain_id} LACONICD_REST_ENDPOINT=${laconicd_rest_endpoint} LACONICD_GQL_ENDPOINT=${laconicd_gql_endpoint} PRIVATE_KEY=${laconicd_key} yarn test:nameservice-expiry | ||||||
|  |           docker logs sdk_tests-laconicd-1 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user