Skip to content

Commit

Permalink
ci: move goimports back to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Mar 31, 2022
1 parent 68124d5 commit 75e8912
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 43 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/automated-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Cache
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -61,8 +59,6 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Cache
uses: actions/cache@v2
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Cache
uses: actions/cache@v2
with:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/main-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Cache
uses: actions/cache@v2
with:
Expand All @@ -38,8 +36,6 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Cache
uses: actions/cache@v2
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- run: echo "🐧 This job is now running on a ${{ runner.os }}-${{ runner.arch }} server hosted by GitHub!"
- name: Checkout
Expand All @@ -13,8 +16,6 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Cache
uses: actions/cache@v2
with:
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/ut-mac.yml

This file was deleted.

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ md5-plugin.%:

.PHONY: fmt
fmt: ## Run 'go fmt' & goimports against code.
go install golang.org/x/tools/cmd/goimports@latest
goimports -local="github.com/merico-dev/stream" -d -w cmd
goimports -local="github.com/merico-dev/stream" -d -w pkg
goimports -local="github.com/merico-dev/stream" -d -w internal
Expand Down

0 comments on commit 75e8912

Please sign in to comment.