Skip to content

Commit 87f82c2

Browse files
committed
updated the pipelines
Signed-off-by: vviveksharma <visharma@progress.com>
1 parent 82a7af1 commit 87f82c2

3 files changed

Lines changed: 14 additions & 22 deletions

File tree

.github/workflows/lint.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
uses: actions/setup-go@v5
2020
with:
2121
go-version: '1.26.x'
22-
cache: false # golangci-lint action has its own cache
2322

24-
- name: golangci-lint
25-
uses: golangci/golangci-lint-action@v4
26-
with:
27-
version: latest
28-
args: --timeout=5m --verbose
23+
- name: Install golangci-lint from source
24+
run: |
25+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
26+
27+
- name: Run golangci-lint
28+
run: golangci-lint run --timeout=5m --verbose
2929

3030
gofmt:
3131
name: gofmt

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ jobs:
6767
uses: actions/setup-go@v5
6868
with:
6969
go-version: '1.26.x'
70-
cache: true
7170

72-
- name: golangci-lint
73-
uses: golangci/golangci-lint-action@v4
74-
with:
75-
version: latest
76-
args: --timeout=5m
71+
- name: Install golangci-lint from source
72+
run: |
73+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
74+
75+
- name: Run golangci-lint
76+
run: golangci-lint run --timeout=5m
7777

7878
build:
7979
name: Build
@@ -94,9 +94,9 @@ jobs:
9494
cache: true
9595

9696
- name: Build
97-
run: go build -v -o goforge ./cmd/goforge
97+
run: go build -v ./cmd/goforge
9898

99-
- name: Verify build
99+
- name: Verify build (Unix)
100100
if: runner.os != 'Windows'
101101
run: ./goforge version
102102

internal/cmd/create.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,6 @@ func runCreateWithDeps(opts CreateOptions, cmd *cobra.Command, args []string) er
119119
return nil
120120
}
121121

122-
// runGoModTidy executes go mod tidy in the project directory.
123-
// This is a convenience wrapper for backward compatibility.
124-
func runGoModTidy(projectPath string) error {
125-
return runGoModTidyWithDeps(CreateOptions{
126-
CMD: adapters.NewExecCommander(),
127-
}, projectPath)
128-
}
129-
130122
// runGoModTidyWithDeps executes go mod tidy with injected command executor.
131123
func runGoModTidyWithDeps(opts CreateOptions, projectPath string) error {
132124
return opts.CMD.Run("go", []string{"mod", "tidy"}, projectPath, os.Stdout, os.Stderr)

0 commit comments

Comments
 (0)