Skip to content

Commit d5978a3

Browse files
committed
goimports after mocks in Preview generation GHA
1 parent a4f4594 commit d5978a3

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/autoupdate-preview.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
working-directory: ./tools
4141
if: env.FILES_CHANGED == 'true'
4242
run: make generate_mocks
43+
- name: Fix import order issues
44+
run: goimports -l -w .
4345
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
4446
if: env.FILES_CHANGED == 'true'
4547
with:

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
npm install
4141
npm run ci
42-
- run: go install golang.org/x/tools/cmd/goimports@v0.21.0
42+
- run: make install-goimports
4343
- working-directory: ./tools
4444
run: |
4545
export PATH=${PATH}:`go env GOPATH`/bin

tools/releaser/scripts/preview-version.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,3 @@ npm exec -c "replace-in-file '/$OLD_PACKAGE/g' '$NEW_PACKAGE' $VERSION_UPDATE_PA
2020

2121
echo "Add preview version to examples go.mod"
2222
(cd "$examples_path" && go get $NEW_PACKAGE)
23-
24-
echo "Fix import order issues"
25-
goimports -l -w .

0 commit comments

Comments
 (0)