diff --git a/templates/github/workflows/bench.yml b/templates/github/workflows/bench.yml index dbcbf6d..bd4fb36 100644 --- a/templates/github/workflows/bench.yml +++ b/templates/github/workflows/bench.yml @@ -28,7 +28,7 @@ jobs: steps: - name: Install Go stable if: env.GO_VERSION != 'tip' - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} @@ -43,12 +43,12 @@ jobs: echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ (github.event.inputs.new != '') && github.event.inputs.new || github.event.ref }} - name: Go cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: # In order: # * Module download cache @@ -61,7 +61,7 @@ jobs: ${{ runner.os }}-go-cache - name: Restore benchstat - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/go/bin/benchstat key: ${{ runner.os }}-benchstat-legacy @@ -69,7 +69,7 @@ jobs: - name: Restore base benchmark result id: base-benchmark if: env.CACHE_BENCHMARK == 'on' - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | bench-master.txt diff --git a/templates/github/workflows/cloc.yml b/templates/github/workflows/cloc.yml index 927e099..3f1fc19 100644 --- a/templates/github/workflows/cloc.yml +++ b/templates/github/workflows/cloc.yml @@ -13,11 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: pr - name: Checkout base code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.base.sha }} path: base diff --git a/templates/github/workflows/gorelease.yml b/templates/github/workflows/gorelease.yml index 5fb995e..41767ba 100644 --- a/templates/github/workflows/gorelease.yml +++ b/templates/github/workflows/gorelease.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Install Go stable if: env.GO_VERSION != 'tip' - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Install Go tip @@ -29,9 +29,9 @@ jobs: ~/sdk/gotip/bin/go version echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Gorelease cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/go/bin/gorelease diff --git a/templates/github/workflows/release-assets.yml b/templates/github/workflows/release-assets.yml index 837146f..b7b3f18 100644 --- a/templates/github/workflows/release-assets.yml +++ b/templates/github/workflows/release-assets.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Install Go stable if: env.GO_VERSION != 'tip' - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Install Go tip @@ -29,7 +29,7 @@ jobs: ~/sdk/gotip/bin/go version echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Build artifacts run: | make release-assets diff --git a/templates/github/workflows/test-integration.yml b/templates/github/workflows/test-integration.yml index 7c17318..2ad2ed2 100644 --- a/templates/github/workflows/test-integration.yml +++ b/templates/github/workflows/test-integration.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Install Go stable if: env.GO_VERSION != 'tip' - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Install Go tip @@ -38,10 +38,10 @@ jobs: echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Go cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: # In order: # * Module download cache diff --git a/templates/github/workflows/test-unit.yml b/templates/github/workflows/test-unit.yml index 0df8724..6bd892a 100644 --- a/templates/github/workflows/test-unit.yml +++ b/templates/github/workflows/test-unit.yml @@ -21,12 +21,12 @@ jobs: test: strategy: matrix: - go-version: [ 1.18.x, 1.19.x, 1.20.x ] + go-version: [ 1.18.x, 1.19.x, 1.20.x ] runs-on: ubuntu-latest steps: - name: Install Go stable if: matrix.go-version != 'tip' - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} @@ -41,10 +41,10 @@ jobs: echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Go cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: # In order: # * Module download cache