From 03072a1fbd432e5ea020bce37d6d615cd969c678 Mon Sep 17 00:00:00 2001 From: Daniel <24758309+leedaniil@users.noreply.github.com> Date: Thu, 16 Dec 2021 00:38:32 +0300 Subject: [PATCH] Turn on fix-all (#16604) --- .github/workflows/fix.yml | 30 ++++++++++++++++-------------- go.mod | 2 +- go.sum | 2 ++ 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/fix.yml b/.github/workflows/fix.yml index d9c945f99..28ddcf884 100644 --- a/.github/workflows/fix.yml +++ b/.github/workflows/fix.yml @@ -19,33 +19,35 @@ jobs: with: token: ${{ secrets.COMMIT_TOKEN }} ref: ${{ github.ref }} + - name: Checkout (fork repo, default token) if: github.repository_owner != 'trustwallet' uses: actions/checkout@v2 with: token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.ref }} - - uses: actions/setup-node@v1 + + - name: Set up Go 1.17 + uses: actions/setup-go@v2 with: - node-version: 12 - - name: Install Dependencies - run: npm ci + go-version: 1.17 + id: go + - name: Run fix script (trustwallet repo, sanity and consistency) if: github.repository_owner == 'trustwallet' - run: npm run fix - - name: Run fix-sanity script (fork repo, sanity only) - if: github.repository_owner != 'trustwallet' - run: npm run fix-sanity - - name: Debug - run: echo "GITHUB_REF " $GITHUB_REF " GITHUB_BASE_REF " $GITHUB_BASE_REF - - name: Show result (diff) (run 'npm run fix' locally) + run: go run ./cmd/main.go --config=./.github/assets.config.yaml --script=fixer + + # - name: Debug + # run: echo "GITHUB_REF " $GITHUB_REF " GITHUB_BASE_REF " $GITHUB_BASE_REF + + - name: Show fix result (diff) run: | git status git diff + - name: Run check - run: npm run check - - name: Run test - run: npm t + run: go run ./cmd/main.go --config=./.github/assets.config.yaml --script=checker + - name: Commit changes if: success() uses: stefanzweifel/git-auto-commit-action@v4.1.2 diff --git a/go.mod b/go.mod index 479efebc7..21dd6633d 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/sirupsen/logrus v1.8.1 - github.com/trustwallet/assets-go-libs v0.0.14 + github.com/trustwallet/assets-go-libs v0.0.15 ) require ( diff --git a/go.sum b/go.sum index 38aeca64a..3a5059347 100644 --- a/go.sum +++ b/go.sum @@ -44,6 +44,8 @@ github.com/trustwallet/assets-go-libs v0.0.14-0.20211215100024-87d144f2d64d h1:L github.com/trustwallet/assets-go-libs v0.0.14-0.20211215100024-87d144f2d64d/go.mod h1:feaOqyxqy7alNo6t9iVmtaDHYeCIM15JlkH3x4ozpoI= github.com/trustwallet/assets-go-libs v0.0.14 h1:7fs6tPFf8XF1svj1fksJ+PN4ukT3v3sRfz/z4W86JAA= github.com/trustwallet/assets-go-libs v0.0.14/go.mod h1:feaOqyxqy7alNo6t9iVmtaDHYeCIM15JlkH3x4ozpoI= +github.com/trustwallet/assets-go-libs v0.0.15 h1:0q0xUR0FATqqdLr9OShRwYK0r3KDqGLWrxpOOc4lJ4o= +github.com/trustwallet/assets-go-libs v0.0.15/go.mod h1:feaOqyxqy7alNo6t9iVmtaDHYeCIM15JlkH3x4ozpoI= github.com/trustwallet/go-libs v0.2.20 h1:pYstFNgsc7CVyVeYt5GHsMa0JNQHJVRvPQqMvXMpCtY= github.com/trustwallet/go-libs v0.2.20/go.mod h1:7QdAp1lcteKKI0DYqGoaO8KO4eTNYjGmg8vHy0YXkKc= github.com/trustwallet/go-primitives v0.0.17 h1:1fBxZMKGCHdHtgdUzsqdFlD21+1GneIk/sxN6jxYBds=