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: with:
token: ${{ secrets.COMMIT_TOKEN }} token: ${{ secrets.COMMIT_TOKEN }}
ref: ${{ github.ref }} ref: ${{ github.ref }}
- name: Checkout (fork repo, default token) - name: Checkout (fork repo, default token)
if: github.repository_owner != 'trustwallet' if: github.repository_owner != 'trustwallet'
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.ref }} ref: ${{ github.ref }}
- uses: actions/setup-node@v1
- name: Set up Go 1.17
uses: actions/setup-go@v2
with: with:
node-version: 12 go-version: 1.17
- name: Install Dependencies id: go
run: npm ci
- name: Run fix script (trustwallet repo, sanity and consistency) - name: Run fix script (trustwallet repo, sanity and consistency)
if: github.repository_owner == 'trustwallet' if: github.repository_owner == 'trustwallet'
run: npm run fix run: go run ./cmd/main.go --config=./.github/assets.config.yaml --script=fixer
- name: Run fix-sanity script (fork repo, sanity only)
if: github.repository_owner != 'trustwallet' # - name: Debug
run: npm run fix-sanity # run: echo "GITHUB_REF " $GITHUB_REF " GITHUB_BASE_REF " $GITHUB_BASE_REF
- name: Debug
run: echo "GITHUB_REF " $GITHUB_REF " GITHUB_BASE_REF " $GITHUB_BASE_REF - name: Show fix result (diff)
- name: Show result (diff) (run 'npm run fix' locally)
run: | run: |
git status git status
git diff git diff
- name: Run check - name: Run check
run: npm run check run: go run ./cmd/main.go --config=./.github/assets.config.yaml --script=checker
- name: Run test
run: npm t
- name: Commit changes - name: Commit changes
if: success() if: success()
uses: stefanzweifel/git-auto-commit-action@v4.1.2 uses: stefanzweifel/git-auto-commit-action@v4.1.2

2
go.mod
View File

@ -4,7 +4,7 @@ go 1.17
require ( require (
github.com/sirupsen/logrus v1.8.1 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 ( 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-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 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.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 h1:pYstFNgsc7CVyVeYt5GHsMa0JNQHJVRvPQqMvXMpCtY=
github.com/trustwallet/go-libs v0.2.20/go.mod h1:7QdAp1lcteKKI0DYqGoaO8KO4eTNYjGmg8vHy0YXkKc= github.com/trustwallet/go-libs v0.2.20/go.mod h1:7QdAp1lcteKKI0DYqGoaO8KO4eTNYjGmg8vHy0YXkKc=
github.com/trustwallet/go-primitives v0.0.17 h1:1fBxZMKGCHdHtgdUzsqdFlD21+1GneIk/sxN6jxYBds= github.com/trustwallet/go-primitives v0.0.17 h1:1fBxZMKGCHdHtgdUzsqdFlD21+1GneIk/sxN6jxYBds=