...
1on: [push]
2name: Test
3jobs:
4 test:
5 strategy:
6 matrix:
7 # This is just a version to compile the integration_test.go; see
8 # golangVersions in that file for the list of actual Go versions used.
9 go-version: [1.x]
10 os: [ubuntu-latest] # TODO: Add [macos-latest, windows-latest]
11 runs-on: ${{ matrix.os }}
12 steps:
13 - name: Install Linux dependencies
14 if: runner.os == 'Linux'
15 run: sudo apt-get -y install autoconf automake libtool curl make g++ unzip
16 - name: Checkout code
17 uses: actions/checkout@v3
18 - name: Install Go
19 uses: actions/setup-go@v4
20 with:
21 go-version: ${{ matrix.go-version }}
22 - name: Cache dependencies
23 uses: actions/cache@v3
24 with:
25 path: |
26 .cache
27 ~/.cache/bazel
28 key: ${{ runner.os }}-${{ hashFiles('integration_test.go') }}
29 - name: Test
30 env:
31 # Protobuf 25 does not yet support Bazel 7
32 USE_BAZEL_VERSION: latest-1
33 run: go test -run='^TestIntegration$' -v -timeout=60m -count=1 -failfast "$@"
View as plain text