diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..fcaf6bc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +on: [push, pull_request] +name: Test +jobs: + test: + strategy: + matrix: + go-version: [1.12.9, 1.13] + platform: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v1 + - name: Test + run: go test ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3e86a91..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: go - -go: - - 1.11.x - - 1.12.x - -env: - - GO111MODULE=on - -install: true - -script: - - go test ./... diff --git a/README.md b/README.md index 33889b0..c808de5 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ # fdroidcl [![GoDoc](https://godoc.org/github.com/mvdan/fdroidcl?status.svg)](https://godoc.org/mvdan.cc/fdroidcl) -[![Build Status](https://travis-ci.org/mvdan/fdroidcl.svg?branch=master)](https://travis-ci.org/mvdan/fdroidcl) -[F-Droid](https://f-droid.org/) desktop client. Requires Go 1.11 or later. +[F-Droid](https://f-droid.org/) desktop client. Requires Go 1.12 or later. go get -u mvdan.cc/fdroidcl diff --git a/go.mod b/go.mod index 713c57d..345dfad 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,8 @@ module mvdan.cc/fdroidcl require ( github.com/kr/pretty v0.1.0 - github.com/rogpeppe/go-internal v1.3.0 + github.com/rogpeppe/go-internal v1.3.2 + gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect ) go 1.13 diff --git a/go.sum b/go.sum index a0f6af2..5079dee 100644 --- a/go.sum +++ b/go.sum @@ -3,9 +3,11 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/rogpeppe/go-internal v1.3.0 h1:RR9dF3JtopPvtkroDZuVD7qquD0bnHlKSqaQhgwt8yk= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.3.2 h1:XU784Pr0wdahMY2bYcyK6N1KuaRAdLtqD4qd8D18Bfs= +github.com/rogpeppe/go-internal v1.3.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/errgo.v2 v2.1.0 h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= diff --git a/show.go b/show.go index b082807..2e0ca58 100644 --- a/show.go +++ b/show.go @@ -55,7 +55,7 @@ func findApps(ids []string) ([]fdroid.App, error) { byId := appsMap(apps) result := make([]fdroid.App, len(ids)) for i, id := range ids { - var vcode = -1 + vcode := -1 j := strings.Index(id, ":") if j > -1 { var err error