Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 9897408

Browse files
authored
Merge pull request #1 from blbrdv/cicd
Cicd
2 parents e4691aa + 1a33e2a commit 9897408

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint and test
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
lint-and-test:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- uses: actions/setup-go@v4
14+
15+
with:
16+
go-version: '1.21'
17+
cache: false
18+
19+
- name: golangci-lint
20+
uses: golangci/golangci-lint-action@v3
21+
with:
22+
version: v1.54
23+
24+
- name: tests
25+
run: go test ./...
26+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ where `id` is product identifier form MS store, e.g.
1212

1313
### Run tests
1414

15-
`go test .\internal`
15+
`go test ./...`
1616

1717
### Build
1818

go.mod

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,12 @@ require (
1010
require github.com/antchfx/jsonquery v1.3.3
1111

1212
require (
13-
github.com/Masterminds/semver v1.5.0
14-
)
15-
16-
require (
17-
github.com/KnicKnic/go-powershell v0.0.10
1813
github.com/antchfx/xpath v1.2.4 // indirect
1914
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
2015
github.com/go-resty/resty/v2 v2.7.0
2116
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
2217
github.com/russross/blackfriday/v2 v2.1.0 // indirect
2318
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
2419
golang.org/x/net v0.11.0 // indirect
25-
golang.org/x/sys v0.9.0 // indirect
2620
golang.org/x/text v0.10.0 // indirect
2721
)

internal/msstore/fe3_delivery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func Download(id string, version string, destinationPath string) (string, error)
216216
return "", err
217217
}
218218

219-
bundles = append(bundles, types.BundleData{v, name, urlobj})
219+
bundles = append(bundles, types.BundleData{Version: v, Name: name, Url: urlobj})
220220
}
221221
}
222222

0 commit comments

Comments
 (0)