protobuf-go/.github/workflows/test.yml
Kir Kolyshkin 11ec34fe79 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>
2022-05-23 16:51:27 +00:00

29 lines
933 B
YAML

on: [push]
name: Test
jobs:
test:
strategy:
matrix:
# This is just a version to compile the integration_test.go; see
# golangVersions in that file for the list of actual Go versions used.
go-version: [1.x]
os: [ubuntu-latest] # TODO: Add [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: sudo apt-get -y install autoconf automake libtool curl make g++ unzip
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3.0.2
with:
path: .cache
key: ${{ runner.os }}-${{ hashFiles('integration_test.go') }}
- name: Test
run: go test -v -timeout=60m -count=1 -failfast integration_test.go