• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: Install Go
17      uses: actions/setup-go@v3
18      with:
19        go-version: ${{ matrix.go-version }}
20    - name: Checkout code
21      uses: actions/checkout@v3
22    - name: Cache dependencies
23      uses: actions/cache@v3.0.2
24      with:
25        path: .cache
26        key: ${{ runner.os }}-${{ hashFiles('integration_test.go') }}
27    - name: Test
28      run: go test -v -timeout=60m -count=1 -failfast integration_test.go
29