diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml index e470e51..24d2c63 100644 --- a/.github/workflows/go-lint.yml +++ b/.github/workflows/go-lint.yml @@ -46,7 +46,7 @@ jobs: name: Run golangci-lint runs-on: ubuntu-latest # ref. https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: DEBUG shell: bash run: | @@ -61,7 +61,7 @@ jobs: ================================================================ DEBUG_DOC - name: actions/cache for versenv - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cache/versenv @@ -85,7 +85,7 @@ jobs: # Setup versenv direnv allow ${{ env.WORKDIR }} make versenv - - uses: actions/setup-go@v5 # ref. https://github.com/actions/setup-go#usage + - uses: actions/setup-go@v6 # ref. https://github.com/actions/setup-go#usage id: setup-go with: cache: false @@ -97,7 +97,7 @@ jobs: echo "GOVERSION=$(go version | cut -d' ' -f3)" >> "$GITHUB_OUTPUT" echo "GOCACHE=$(go env GOCACHE)" >> "$GITHUB_OUTPUT" - name: actions/cache for go - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/go/pkg/mod @@ -119,7 +119,7 @@ jobs: if [ -n "${GITHUB_TOKEN-}" ]; then direnv exec . bash -Eeux -o pipefail -c 'echo "${GOPRIVATE:-}${GOPRIVATE+,}" | while read -d , -r LINE; do echo "set git config: ${LINE}"; git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@${LINE}".insteadOf "https://${LINE}"; done' fi - - uses: golangci/golangci-lint-action@v6.0.1 # ref. https://github.com/golangci/golangci-lint-action#how-to-use + - uses: golangci/golangci-lint-action@v9.2.0 # ref. https://github.com/golangci/golangci-lint-action#how-to-use with: working-directory: ${{ env.WORKDIR }} args: --timeout=600s diff --git a/.github/workflows/go-mod-tidy.yml b/.github/workflows/go-mod-tidy.yml index 5f85409..98fcf82 100644 --- a/.github/workflows/go-mod-tidy.yml +++ b/.github/workflows/go-mod-tidy.yml @@ -40,7 +40,7 @@ jobs: contents: write runs-on: ubuntu-latest # ref. https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.ref }} # needed for gh pr view - name: DEBUG @@ -57,7 +57,7 @@ jobs: ================================================================ DEBUG_DOC - name: actions/cache for versenv - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cache/versenv @@ -81,7 +81,7 @@ jobs: # Setup versenv direnv allow ${{ env.WORKDIR }} make versenv - - uses: actions/setup-go@v5 # ref. https://github.com/actions/setup-go#usage + - uses: actions/setup-go@v6 # ref. https://github.com/actions/setup-go#usage id: setup-go with: cache: false @@ -93,7 +93,7 @@ jobs: echo "GOVERSION=$(go version | cut -d' ' -f3)" >> "$GITHUB_OUTPUT" echo "GOCACHE=$(go env GOCACHE)" >> "$GITHUB_OUTPUT" - name: actions/cache for go - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/go/pkg/mod diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 3f5516b..bc14175 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -46,7 +46,7 @@ jobs: name: Run go test runs-on: ubuntu-latest # ref. https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: DEBUG shell: bash run: | @@ -61,7 +61,7 @@ jobs: ================================================================ DEBUG_DOC - name: actions/cache for versenv - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cache/versenv @@ -83,7 +83,7 @@ jobs: # Setup versenv direnv allow ${{ env.WORKDIR }} make versenv - - uses: actions/setup-go@v5 # ref. https://github.com/actions/setup-go#usage + - uses: actions/setup-go@v6 # ref. https://github.com/actions/setup-go#usage id: setup-go with: cache: false @@ -95,7 +95,7 @@ jobs: echo "GOVERSION=$(go version | cut -d' ' -f3)" >> "$GITHUB_OUTPUT" echo "GOCACHE=$(go env GOCACHE)" >> "$GITHUB_OUTPUT" - name: actions/cache for go - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/go/pkg/mod @@ -127,7 +127,7 @@ jobs: set -Eeu -o pipefail -x direnv allow . direnv exec . make test - - uses: codecov/codecov-action@v4 # ref. https://github.com/codecov/codecov-action#example-workflowyml-with-codecov-action + - uses: codecov/codecov-action@v5 # ref. https://github.com/codecov/codecov-action#example-workflowyml-with-codecov-action with: token: ${{ secrets.CODECOV_TOKEN }} files: ${{ env.WORKDIR }}/coverage.txt diff --git a/.github/workflows/label-checker.yml b/.github/workflows/label-checker.yml index 7e44dd0..a7fd059 100644 --- a/.github/workflows/label-checker.yml +++ b/.github/workflows/label-checker.yml @@ -45,7 +45,7 @@ jobs: checks: read repository-projects: read steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.pull_request.head.ref }} # needed for gh pr view - name: Check labels