From e19f1e9f1d09019e81a2d92bd092c53df8efac08 Mon Sep 17 00:00:00 2001 From: "mykola.eth" <3277207+kolya182@users.noreply.github.com> Date: Mon, 20 Apr 2020 13:15:31 -0700 Subject: [PATCH] Run all script in daily update action (#1934) * Run all script in daily update action * Run all scripts --- .github/workflows/daily_update.yml | 16 ++++++++----- .github/workflows/danger.yml | 4 ---- .github/workflows/formatter.yml | 37 ------------------------------ 3 files changed, 10 insertions(+), 47 deletions(-) delete mode 100644 .github/workflows/formatter.yml diff --git a/.github/workflows/daily_update.yml b/.github/workflows/daily_update.yml index b99262945..23891636a 100644 --- a/.github/workflows/daily_update.yml +++ b/.github/workflows/daily_update.yml @@ -9,16 +9,20 @@ jobs: - uses: actions/checkout@v2 with: token: ${{ secrets.DANGER_GITHUB_API_TOKEN }} - - uses: actions/setup-node@v1.4.1 + - uses: actions/setup-node@v1 with: node-version: 12 - - name: Install dependencies - run: npm i - - name: Generate list - run: | + - name: Install Dependencies + run: npm ci + - name: Run scripts + run: | npm run update:bep2 + npm run resize + npm run format:all npm run gen:list - - name: Commit daily changes if new updates + - name: Run final test + run: npm t + - name: Commit changes if any uses: stefanzweifel/git-auto-commit-action@v4.1.2 with: commit_user_name: trust-wallet-merge-bot diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index ad53f9d19..71ca1e553 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -1,11 +1,7 @@ name: Danger - on: push: branches: [ master ] - pull_request: - branches: [ master ] - jobs: danger: runs-on: ubuntu-latest diff --git a/.github/workflows/formatter.yml b/.github/workflows/formatter.yml deleted file mode 100644 index 0414cc1aa..000000000 --- a/.github/workflows/formatter.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Formatter -on: - push: - branches: - - '*' - - '!master' - pull_request: - branches: - - 'master' -jobs: - format: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.head_ref }} - token: ${{ secrets.DANGER_GITHUB_API_TOKEN }} - - uses: actions/setup-node@v1.4.1 - with: - node-version: '12.x' - - name: Restore npm cache - uses: actions/cache@v1 - with: - id: cache-npm - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - - name: Install Dependencies - if: steps.cache-npm.outputs.cache-hit != 'true' - run: npm ci - - run: npm run format:all - - run: npm run resize - - name: Commit daily changes if new updates - uses: stefanzweifel/git-auto-commit-action@v4.1.2 - with: - commit_user_name: trust-wallet-merge-bot - commit_user_email: mergebot@trustwallet.com - commit_message: Add formating \ No newline at end of file