From 400e4085b91fc2508c649ad418482cb0400beef8 Mon Sep 17 00:00:00 2001 From: Atsushi Matsuo Date: Sun, 27 Oct 2024 13:32:10 +0900 Subject: [PATCH] Update go.mod, go.sum and workflow files for GitHub Actions --- .github/workflows/go.yml | 11 +++++------ .github/workflows/release.yml | 6 +++--- go.mod | 10 +++++----- go.sum | 6 ++++++ 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 02960bf..9817467 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,18 +12,17 @@ jobs: matrix: # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners os: [ 'ubuntu-20.04', 'ubuntu-22.04', 'ubuntu-24.04', 'ubuntu-latest', 'macos-13', 'macos-14', 'macos-15', 'macos-latest', 'windows-2019', 'windows-2022', 'windows-latest' ] - go: [ '1.23' ] steps: + - uses: actions/checkout@v4 + - name: Setup go - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: cache: false - go-version: ${{ matrix.go }} + go-version-file: 'go.mod' check-latest: true - - uses: actions/checkout@v4 - - run: go test - shell: bash @@ -109,7 +108,7 @@ jobs: - if: runner.os == 'Linux' && matrix.os == 'ubuntu-22.04' run: | - docker run --rm --env GOSS_COMMIT_HASH=${{ env.goss_commit_hash }} -i -v /$(pwd):/tmp arm64v8/ubuntu:22.04 bash <<'EOF' + docker run --rm --env GOSS_COMMIT_HASH=${{ env.goss_commit_hash }} -i -v /$(pwd):/tmp arm64v8/ubuntu:24.04 bash <<'EOF' cd /tmp cp -p ./dist/linux-arm64/fmcsadmin ./fmcsadmin OS=linux "./goss-linux-arm64" --gossfile tests/goss.yaml validate --format documentation diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab2b7da..d40903b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,14 +14,14 @@ jobs: matrix: # https://docs.github.com/ja/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners os: [ 'macos-latest' ] - go: [ '1.23' ] steps: - name: Setup go - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: cache: false - go-version: ${{ matrix.go }} + go-version-file: 'go.mod' + check-latest: true - uses: actions/checkout@v4 diff --git a/go.mod b/go.mod index bb584f8..95d3b5c 100644 --- a/go.mod +++ b/go.mod @@ -1,15 +1,15 @@ module github.com/emic/fmcsadmin -go 1.23 +go 1.23.0 -toolchain go1.23.0 +toolchain go1.23.2 require ( github.com/golang-jwt/jwt/v5 v5.2.1 github.com/mattn/go-scan v0.0.0-20200228002420-2250e6e52487 github.com/olekukonko/tablewriter v0.0.5 - github.com/stretchr/testify v1.8.2 - golang.org/x/term v0.23.0 + github.com/stretchr/testify v1.9.0 + golang.org/x/term v0.25.0 ) require ( @@ -17,6 +17,6 @@ require ( github.com/mattn/go-runewidth v0.0.16 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/rivo/uniseg v0.4.7 // indirect - golang.org/x/sys v0.24.0 // indirect + golang.org/x/sys v0.26.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 3a1b62e..86faed8 100644 --- a/go.sum +++ b/go.sum @@ -22,10 +22,16 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.23.0 h1:F6D4vR+EHoL9/sWAWgAR1H2DcHr4PareCbAaCo1RpuU= golang.org/x/term v0.23.0/go.mod h1:DgV24QBUrK6jhZXl+20l6UWznPlwAHm1Q1mGHtydmSk= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= 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.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=