mirror of
				https://github.com/Instadapp/trustwallet-assets.git
				synced 2024-07-29 22:37:31 +00:00 
			
		
		
		
	[Internal] Clarify Correct and Update builds. (#2872)
* Rename to correct and periodic-update. * Adjust build names. * Move updates with external sources (BEP2 logos, CMC) from correct to periodic-update. * Run periodic-update twice a day. * Split correct into check-all and correct parallel builds. * Rename, test instead of check. Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									d2246180db
								
							
						
					
					
						commit
						06a1ab4105
					
				| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
name: Daily Update
 | 
			
		||||
name: Correct
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [ master ]
 | 
			
		||||
jobs:
 | 
			
		||||
  daily_update:
 | 
			
		||||
  correct:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
     - uses: actions/checkout@v2
 | 
			
		||||
| 
						 | 
				
			
			@ -16,11 +16,9 @@ jobs:
 | 
			
		|||
       run: npm ci
 | 
			
		||||
     - name: Run scripts
 | 
			
		||||
       run: |
 | 
			
		||||
         npm run update:bep2
 | 
			
		||||
         npm run resize
 | 
			
		||||
         npm run format:all
 | 
			
		||||
         npm run gen:list
 | 
			
		||||
         npm run map:cmc
 | 
			
		||||
     - name: Run test
 | 
			
		||||
       run: npm t
 | 
			
		||||
     - name: Commit changes if any
 | 
			
		||||
| 
						 | 
				
			
			@ -29,5 +27,4 @@ jobs:
 | 
			
		|||
       with:
 | 
			
		||||
        commit_user_name: trust-wallet-merge-bot
 | 
			
		||||
        commit_user_email: mergebot@trustwallet.com
 | 
			
		||||
        commit_message: Daily update
 | 
			
		||||
        
 | 
			
		||||
        commit_message: Correct
 | 
			
		||||
| 
						 | 
				
			
			@ -1,10 +1,10 @@
 | 
			
		|||
name: Update Validators Info
 | 
			
		||||
name: Periodic Update
 | 
			
		||||
on:
 | 
			
		||||
  schedule:
 | 
			
		||||
    # Run once per day at 19:00 UTC or 12PM PST
 | 
			
		||||
    - cron:  '0 19 * * *'
 | 
			
		||||
    # Run twice per day (at 7:00UTC/12amPST, 19:00UTC/12pmPST)
 | 
			
		||||
    - cron:  '0 7,19 * * *'
 | 
			
		||||
jobs:
 | 
			
		||||
  update-validators:
 | 
			
		||||
  periodic-update:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
     - uses: actions/checkout@v2
 | 
			
		||||
| 
						 | 
				
			
			@ -17,7 +17,10 @@ jobs:
 | 
			
		|||
     - name: Install Dependencies
 | 
			
		||||
       run: npm ci
 | 
			
		||||
     - name: Run scripts
 | 
			
		||||
       run: npm run gen:validators:tezos
 | 
			
		||||
       run: |
 | 
			
		||||
         npm run gen:validators:tezos
 | 
			
		||||
         npm run update:bep2
 | 
			
		||||
         npm run map:cmc
 | 
			
		||||
     - name: Run test
 | 
			
		||||
       run: npm t
 | 
			
		||||
     - name: Commit changes test pased
 | 
			
		||||
| 
						 | 
				
			
			@ -26,4 +29,4 @@ jobs:
 | 
			
		|||
       with:
 | 
			
		||||
         commit_user_name: trust-wallet-merge-bot
 | 
			
		||||
         commit_user_email: mergebot@trustwallet.com
 | 
			
		||||
         commit_message: Update validators info
 | 
			
		||||
         commit_message: Periodic update
 | 
			
		||||
							
								
								
									
										18
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,18 @@
 | 
			
		|||
name: Test
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [ master ]
 | 
			
		||||
jobs:
 | 
			
		||||
  test:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
     - uses: actions/checkout@v2
 | 
			
		||||
       with:
 | 
			
		||||
         token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
 | 
			
		||||
     - uses: actions/setup-node@v1
 | 
			
		||||
       with:
 | 
			
		||||
         node-version: 12
 | 
			
		||||
     - name: Install Dependencies
 | 
			
		||||
       run: npm ci
 | 
			
		||||
     - name: Run test
 | 
			
		||||
       run: npm t
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user