mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-06 10:01:25 +00:00
849f2c2042
fixes https://github.com/golang/protobuf/issues/1562 Update to the latest version of the actions we use while we’re at it. For setup-go@v4 this means we get caching based on go.{mod,sum}. For actions/cache@v3 this means we get zstd compression. Change-Id: I4ddb1a3e15eaafe1e9c946c3f0214da4fa1424df Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/526955 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Lasse Folger <lassefolger@google.com>
31 lines
966 B
YAML
31 lines
966 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: Checkout code
|
|
uses: actions/checkout@v3
|
|
- name: Install Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
.cache
|
|
~/.cache/bazel
|
|
key: ${{ runner.os }}-${{ hashFiles('integration_test.go') }}
|
|
- name: Test
|
|
run: go test -v -timeout=60m -count=1 -failfast integration_test.go
|