From d516a49c37144a2d9590ca91a0684d579ce59dc5 Mon Sep 17 00:00:00 2001 From: Marc Johnson Date: Tue, 13 Aug 2024 12:00:54 -0400 Subject: [PATCH] (#18) chore: update actions script - actions/checkout v3->v4 - actions/setup-go v3->v5 - actions/upload-artifact v3->v4 (#18) chore: update go 1.22.5->1.22.6 (#18) chore: update github.com/goyek/goyek/v2 v2.1.0->v2.2.0 (#18) chore: update github.com/goyek/x v0.1.7->v0.2.0 (#18) chore: update golang.org/x/text v0.16.0->v0.17.0 --- .github/workflows/build.yml | 14 +++++++------- go.mod | 6 +++--- go.sum | 12 ++++++------ go.work | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0cbc8c6..6dd46b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,11 @@ jobs: runs-on: windows-latest steps: - name: Check out source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Fetch go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: '1.22.5' + go-version: 1.22.6 - name: Get dependencies run: go get -u ./... - name: Install linter @@ -18,7 +18,7 @@ jobs: - name: Run linter run: gocritic check -enableAll ./... > lint-issues.txt - name: Post lint issues - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: lint results path: lint-issues.txt @@ -27,14 +27,14 @@ jobs: - name: Run nilaway run: nilaway ./... > nilaway-issues.txt - name: Post nilaway issues - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: nilaway results path: nilaway-issues.txt - name: Run format check run: gofmt -d -e -l ./ > format-issues.txt - name: Post format issues - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: format results path: format-issues.txt @@ -43,7 +43,7 @@ jobs: - name: Run vulnerability check uses: golang/govulncheck-action@v1 with: - go-version-input: 1.22.5 + go-version-input: 1.22.6 - name: Execute unit tests with code coverage run: go test -coverprofile=coverage -covermode=atomic ./... - name: Upload coverage to Codecov diff --git a/go.mod b/go.mod index af5ea48..3741cc2 100644 --- a/go.mod +++ b/go.mod @@ -3,12 +3,12 @@ module github.com/majohn-r/tools-build go 1.22 require ( - github.com/goyek/goyek/v2 v2.1.0 - github.com/goyek/x v0.1.7 + github.com/goyek/goyek/v2 v2.2.0 + github.com/goyek/x v0.2.0 github.com/spf13/afero v1.11.0 ) require ( github.com/mattn/go-shellwords v1.0.12 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/text v0.17.0 // indirect ) diff --git a/go.sum b/go.sum index c62a477..5239069 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,10 @@ -github.com/goyek/goyek/v2 v2.1.0 h1:As5r5j6XxfcJMADfgMYJdxsp1vy9IinT6AKPbCt6fi4= -github.com/goyek/goyek/v2 v2.1.0/go.mod h1:qtHlK7t/dYs1Dw7mLXjEVmgE3nccNa7mQW/RmasOoYg= -github.com/goyek/x v0.1.7 h1:nh0gplLi491oommklcR2Kd2f92EP3cugOfPjpUwtRes= -github.com/goyek/x v0.1.7/go.mod h1:z4MsI/oYknI36ubaSfVomDYz6i4MjsQ1bk69PY3HtIo= +github.com/goyek/goyek/v2 v2.2.0 h1:FXdta04rwVN/HE33XKcBtYht6iaDkJ9Z5Bdh1TdXjO0= +github.com/goyek/goyek/v2 v2.2.0/go.mod h1:mqU0PSD8q3TRCzhJ1mL79/X7FOrXJcpvOtDEBXi92+E= +github.com/goyek/x v0.2.0 h1:vLTzDTqbUQnWTM3NOnejGAWwWZA+hJHElv/cd/3ybQc= +github.com/goyek/x v0.2.0/go.mod h1:I1yv17Zj0g3Zv5iDC+kB9gh3cqJquJSTEgfognEfe94= github.com/mattn/go-shellwords v1.0.12 h1:M2zGm7EW6UQJvDeQxo4T51eKPurbeFbe8WtebGE2xrk= github.com/mattn/go-shellwords v1.0.12/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y= github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= +golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= diff --git a/go.work b/go.work index faba478..4fba186 100644 --- a/go.work +++ b/go.work @@ -1,5 +1,5 @@ go 1.22.2 -toolchain go1.22.5 +toolchain go1.22.6 use .