mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Turn on fix-all (#16604)
This commit is contained in:
parent
f19f48d23c
commit
03072a1fbd
30
.github/workflows/fix.yml
vendored
30
.github/workflows/fix.yml
vendored
|
@ -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
2
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 (
|
||||
|
|
2
go.sum
2
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=
|
||||
|
|
Loading…
Reference in New Issue
Block a user