diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0b9ff87..8920fb6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -14,18 +14,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version-file: 'go.mod' - uses: golangci/golangci-lint-action@v3 test: strategy: matrix: os: ['ubuntu-latest', 'macOS-latest', 'windows-latest'] - go: ["1.20.x", "1.19.x"] runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go }} - - uses: actions/checkout@v4 + go-version-file: 'go.mod' - uses: actions/cache@v3 with: path: ~/go/pkg/mod diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 95cc876..65bb7fb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,7 +15,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version-file: 'go.mod' - name: Generate Token id: generate_token uses: tibdex/github-app-token@v2 diff --git a/go.mod b/go.mod index 36f362b..6fa952a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/tukaelu/sabadashi -go 1.19 +go 1.21 require ( github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213 diff --git a/go.sum b/go.sum index 0512315..ac03c19 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,7 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213 h1:qGQQKEcAR99REcMpsXCp3lJ03zYT1PkRd3kQGPn9GVg= github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213/go.mod h1:vNUNkEQ1e29fT/6vq2aBdFsgNPmy8qMdSay1npru+Sw= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/mackerelio/mackerel-client-go v0.26.0 h1:72hj2zw/rqTUNMNokenRxs6KfJ1aVxRHpZT8X4eOUuA= github.com/mackerelio/mackerel-client-go v0.26.0/go.mod h1:b4qVMQi+w4rxtKQIFycLWXNBtIi9d0r571RzYmg/aXo= github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=