2020-07-28 05:22:28 +00:00
|
|
|
name: Fixes and Consistency Updates
|
2020-04-17 02:27:40 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
jobs:
|
2020-07-28 05:22:28 +00:00
|
|
|
fix-consistency:
|
2020-04-17 02:27:40 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-04-17 02:52:48 +00:00
|
|
|
with:
|
2020-04-20 19:02:28 +00:00
|
|
|
token: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
|
2020-04-20 20:15:31 +00:00
|
|
|
- uses: actions/setup-node@v1
|
2020-04-17 02:27:40 +00:00
|
|
|
with:
|
|
|
|
node-version: 12
|
2020-04-20 20:15:31 +00:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm ci
|
2020-07-28 05:41:11 +00:00
|
|
|
- name: Run fix scripts
|
2020-04-27 19:47:15 +00:00
|
|
|
run: |
|
2020-04-20 20:15:31 +00:00
|
|
|
npm run resize
|
|
|
|
npm run format:all
|
2020-04-17 02:27:40 +00:00
|
|
|
npm run gen:list
|
2020-07-28 05:41:11 +00:00
|
|
|
- name: Show git status (diff)
|
|
|
|
run: git status
|
2020-04-27 19:47:15 +00:00
|
|
|
- name: Run test
|
|
|
|
run: npm t
|
2020-04-20 20:15:31 +00:00
|
|
|
- name: Commit changes if any
|
2020-04-27 19:47:15 +00:00
|
|
|
if: success()
|
2020-04-17 02:27:40 +00:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4.1.2
|
|
|
|
with:
|
|
|
|
commit_user_name: trust-wallet-merge-bot
|
|
|
|
commit_user_email: mergebot@trustwallet.com
|
2020-07-28 05:22:28 +00:00
|
|
|
commit_message: Fixes and Consistency Updates
|