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
|
|
|
|
- name: Install Go
|
2022-05-18 00:06:48 +00:00
|
|
|
uses: actions/setup-go@v3
|
2021-03-03 01:09:55 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
2022-05-18 00:06:48 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-03-03 01:09:55 +00:00
|
|
|
- name: Cache dependencies
|
2022-05-18 00:06:48 +00:00
|
|
|
uses: actions/cache@v3.0.2
|
2021-03-03 01:09:55 +00:00
|
|
|
with:
|
|
|
|
path: .cache
|
|
|
|
key: ${{ runner.os }}-${{ hashFiles('integration_test.go') }}
|
|
|
|
- name: Test
|
2022-05-17 23:11:10 +00:00
|
|
|
run: go test -v -timeout=60m -count=1 -failfast integration_test.go
|