Turn on fix-all (#16604)

This commit is contained in:
Daniel 2021-12-16 00:38:32 +03:00 committed by GitHub
parent f19f48d23c
commit 03072a1fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 15 deletions

View File

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

2
go.mod
View File

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

2
go.sum
View File

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