2021-03-03 01:09:55 +00:00
|
|
|
on: [push]
|
|
|
|
name: Test
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-05-17 23:11:10 +00:00
|
|
|
# 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]
|
2021-03-03 01:09:55 +00:00
|
|
|
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
|
2023-09-08 14:34:59 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
2021-03-03 01:09:55 +00:00
|
|
|
- name: Install Go
|
2023-09-08 14:34:59 +00:00
|
|
|
uses: actions/setup-go@v4
|
2021-03-03 01:09:55 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Cache dependencies
|
2023-09-08 14:34:59 +00:00
|
|
|
uses: actions/cache@v3
|
2021-03-03 01:09:55 +00:00
|
|
|
with:
|
2023-09-08 14:34:59 +00:00
|
|
|
path: |
|
|
|
|
.cache
|
|
|
|
~/.cache/bazel
|
2021-03-03 01:09:55 +00:00
|
|
|
key: ${{ runner.os }}-${{ hashFiles('integration_test.go') }}
|
|
|
|
- name: Test
|
2023-12-21 13:21:45 +00:00
|
|
|
env:
|
|
|
|
# Protobuf 25 does not yet support Bazel 7
|
|
|
|
USE_BAZEL_VERSION: latest-1
|
2023-11-09 17:26:41 +00:00
|
|
|
run: go test -run='^TestIntegration$' -v -timeout=60m -count=1 -failfast "$@"
|