[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:
Adam R 2020-07-25 01:49:07 +02:00 committed by GitHub
parent d2246180db
commit 06a1ab4105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 12 deletions

View File

@ -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

View File

@ -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
View 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