Merge pull request #5734 from mempool/knorrium/update_stg_hosts
This commit is contained in:
		
						commit
						bd8c1efc8e
					
				
							
								
								
									
										72
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										72
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @ -251,17 +251,7 @@ jobs: | |||||||
|     strategy: |     strategy: | ||||||
|       fail-fast: false |       fail-fast: false | ||||||
|       matrix: |       matrix: | ||||||
|         module: ["mempool", "liquid"] |         module: ["mempool", "liquid", "testnet4"] | ||||||
|         include: |  | ||||||
|           - module: "mempool" |  | ||||||
|             spec: | |  | ||||||
|               cypress/e2e/mainnet/*.spec.ts |  | ||||||
|               cypress/e2e/signet/*.spec.ts |  | ||||||
|               cypress/e2e/testnet4/*.spec.ts |  | ||||||
|           - module: "liquid" |  | ||||||
|             spec: | |  | ||||||
|               cypress/e2e/liquid/liquid.spec.ts |  | ||||||
|               cypress/e2e/liquidtestnet/liquidtestnet.spec.ts |  | ||||||
| 
 | 
 | ||||||
|     name: E2E tests for ${{ matrix.module }} |     name: E2E tests for ${{ matrix.module }} | ||||||
|     steps: |     steps: | ||||||
| @ -310,8 +300,10 @@ jobs: | |||||||
| 
 | 
 | ||||||
|       - name: Unzip assets before building (src/resources) |       - name: Unzip assets before building (src/resources) | ||||||
|         run: unzip -o promo-video-assets.zip -d ${{ matrix.module }}/frontend/src/resources/promo-video |         run: unzip -o promo-video-assets.zip -d ${{ matrix.module }}/frontend/src/resources/promo-video | ||||||
|        | 
 | ||||||
|  |       # mempool | ||||||
|       - name: Chrome browser tests (${{ matrix.module }}) |       - name: Chrome browser tests (${{ matrix.module }}) | ||||||
|  |         if: ${{ matrix.module == 'mempool' }} | ||||||
|         uses: cypress-io/github-action@v5 |         uses: cypress-io/github-action@v5 | ||||||
|         with: |         with: | ||||||
|           tag: ${{ github.event_name }} |           tag: ${{ github.event_name }} | ||||||
| @ -322,7 +314,9 @@ jobs: | |||||||
|           wait-on-timeout: 120 |           wait-on-timeout: 120 | ||||||
|           record: true |           record: true | ||||||
|           parallel: true |           parallel: true | ||||||
|           spec: ${{ matrix.spec }} |           spec: | | ||||||
|  |             cypress/e2e/mainnet/*.spec.ts | ||||||
|  |             cypress/e2e/signet/*.spec.ts | ||||||
|           group: Tests on Chrome (${{ matrix.module }}) |           group: Tests on Chrome (${{ matrix.module }}) | ||||||
|           browser: "chrome" |           browser: "chrome" | ||||||
|           ci-build-id: "${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}" |           ci-build-id: "${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}" | ||||||
| @ -332,6 +326,56 @@ jobs: | |||||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|           CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} |           CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | ||||||
| 
 | 
 | ||||||
|  |       # liquid | ||||||
|  |       - name: Chrome browser tests (${{ matrix.module }}) | ||||||
|  |         if: ${{ matrix.module == 'liquid' }} | ||||||
|  |         uses: cypress-io/github-action@v5 | ||||||
|  |         with: | ||||||
|  |           tag: ${{ github.event_name }} | ||||||
|  |           working-directory: ${{ matrix.module }}/frontend | ||||||
|  |           build: npm run config:defaults:${{ matrix.module }} | ||||||
|  |           start: npm run start:local-staging | ||||||
|  |           wait-on: "http://localhost:4200" | ||||||
|  |           wait-on-timeout: 120 | ||||||
|  |           record: true | ||||||
|  |           parallel: true | ||||||
|  |           spec: | | ||||||
|  |             cypress/e2e/liquid/liquid.spec.ts | ||||||
|  |             cypress/e2e/liquidtestnet/liquidtestnet.spec.ts | ||||||
|  |           group: Tests on Chrome (${{ matrix.module }}) | ||||||
|  |           browser: "chrome" | ||||||
|  |           ci-build-id: "${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}" | ||||||
|  |         env: | ||||||
|  |           COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }} | ||||||
|  |           CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||||||
|  |           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |           CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | ||||||
|  | 
 | ||||||
|  |       # testnet | ||||||
|  |       - name: Chrome browser tests (${{ matrix.module }}) | ||||||
|  |         if: ${{ matrix.module == 'testnet4' }} | ||||||
|  |         uses: cypress-io/github-action@v5 | ||||||
|  |         with: | ||||||
|  |           tag: ${{ github.event_name }} | ||||||
|  |           working-directory: ${{ matrix.module }}/frontend | ||||||
|  |           build: npm run config:defaults:mempool | ||||||
|  |           start: npm run start:local-staging | ||||||
|  |           wait-on: "http://localhost:4200" | ||||||
|  |           wait-on-timeout: 120 | ||||||
|  |           record: true | ||||||
|  |           parallel: true | ||||||
|  |           spec: | | ||||||
|  |             cypress/e2e/testnet4/*.spec.ts | ||||||
|  |           group: Tests on Chrome (${{ matrix.module }}) | ||||||
|  |           browser: "chrome" | ||||||
|  |           ci-build-id: "${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}" | ||||||
|  |         env: | ||||||
|  |           CYPRESS_REROUTE_TESTNET: true | ||||||
|  |           COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }} | ||||||
|  |           CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||||||
|  |           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|  |           CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | ||||||
|  | 
 | ||||||
|   validate_docker_json: |   validate_docker_json: | ||||||
|     if: "!contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')" |     if: "!contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')" | ||||||
|     runs-on: "ubuntu-latest" |     runs-on: "ubuntu-latest" | ||||||
| @ -359,4 +403,4 @@ jobs: | |||||||
|       - name: Validate JSON syntax |       - name: Validate JSON syntax | ||||||
|         run: | |         run: | | ||||||
|           cat mempool-config.json | jq |           cat mempool-config.json | jq | ||||||
|         working-directory: docker/docker/backend |         working-directory: docker/docker/backend | ||||||
| @ -344,7 +344,9 @@ describe('Mainnet', () => { | |||||||
|       cy.visit('/'); |       cy.visit('/'); | ||||||
|       cy.waitForSkeletonGone(); |       cy.waitForSkeletonGone(); | ||||||
| 
 | 
 | ||||||
|       cy.changeNetwork('testnet4'); |       //TODO(knorrium): add a check for the proxied server
 | ||||||
|  |       // cy.changeNetwork('testnet4');
 | ||||||
|  | 
 | ||||||
|       cy.changeNetwork('signet'); |       cy.changeNetwork('signet'); | ||||||
|       cy.changeNetwork('mainnet'); |       cy.changeNetwork('mainnet'); | ||||||
|     }); |     }); | ||||||
|  | |||||||
| @ -3,8 +3,10 @@ const fs = require('fs'); | |||||||
| let PROXY_CONFIG = require('./proxy.conf'); | let PROXY_CONFIG = require('./proxy.conf'); | ||||||
| 
 | 
 | ||||||
| PROXY_CONFIG.forEach(entry => { | PROXY_CONFIG.forEach(entry => { | ||||||
|   entry.target = entry.target.replace("mempool.space", "mempool-staging.fra.mempool.space"); |   const hostname = process.env.CYPRESS_REROUTE_TESTNET === 'true' ? 'mempool-staging.fra.mempool.space' : 'node201.fmt.mempool.space'; | ||||||
|   entry.target = entry.target.replace("liquid.network", "liquid-staging.fra.mempool.space"); |   console.log(`e2e tests running against ${hostname}`); | ||||||
|  |   entry.target = entry.target.replace("mempool.space", hostname); | ||||||
|  |   entry.target = entry.target.replace("liquid.network", "liquid-staging.fmt.mempool.space"); | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| module.exports = PROXY_CONFIG; | module.exports = PROXY_CONFIG; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user