diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8883455..ec8ad39 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,12 +7,6 @@ on: - '.github/workflows/**' - 'go.mod' - 'go.sum' - pull_request: - paths: - - '**.go' - - '.github/workflows/**' - - 'go.mod' - - 'go.sum' jobs: linter: @@ -22,11 +16,11 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '>=1.18.0' + go-version-file: './go.mod' - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.46.1 + version: latest test: name: Unit Test @@ -51,7 +45,7 @@ jobs: - name: Setup GoLang uses: actions/setup-go@v3 with: - go-version: '>=1.18.0' + go-version-file: './go.mod' - name: Get Dependencies if: steps.cache-go.outputs.cache-hit != 'true' run: go get -v -t -d ./... @@ -68,7 +62,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '>=1.18.0' + go-version-file: './go.mod' - uses: goreleaser/goreleaser-action@v2 with: distribution: goreleaser diff --git a/go.mod b/go.mod index c3918df..b2bfbbe 100644 --- a/go.mod +++ b/go.mod @@ -18,6 +18,6 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rivo/uniseg v0.2.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect + golang.org/x/sys v0.1.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 20a24af..be26603 100644 --- a/go.sum +++ b/go.sum @@ -28,8 +28,9 @@ github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMT github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=