gha-ci: update github actions to latest versions

Update
 - actions/setup-go from v2 to v3;
 - actions/checkout from v2 to v3;
 - actions/cache from v2 to v3.0.2.

Tested at https://github.com/kolyshkin/protobuf-go/runs/6480937412

Change-Id: Ibeda7c83b1dfaf69dff1dab358b977958a48e51d
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/406846
Reviewed-by: Lasse Folger <lassefolger@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
This commit is contained in:
Kir Kolyshkin 2022-05-17 17:06:48 -07:00 committed by Lasse Folger
parent 147729ae80
commit 11ec34fe79

View File

@ -14,13 +14,13 @@ jobs:
if: runner.os == 'Linux'
run: sudo apt-get -y install autoconf automake libtool curl make g++ unzip
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v3.0.2
with:
path: .cache
key: ${{ runner.os }}-${{ hashFiles('integration_test.go') }}