...

Text file src/github.com/lestrrat-go/iter/.github/workflows/ci.yml

Documentation: github.com/lestrrat-go/iter/.github/workflows

     1name: CI
     2on: [push, pull_request]
     3
     4jobs:
     5  build:
     6    runs-on: ubuntu-latest
     7    strategy:
     8      matrix:
     9        go: [ '1.15', '1.16' ]
    10    name: Go ${{ matrix.go }} test
    11    steps:
    12      - name: Checkout repository
    13        uses: actions/checkout@v2
    14      - name: Install Go stable version
    15        if: matrix.go != 'tip'
    16        uses: actions/setup-go@v2
    17        with:
    18          go-version: ${{ matrix.go }}
    19      - name: Install Go tip
    20        if: matrix.go == 'tip'
    21        run: |
    22          git clone --depth=1 https://go.googlesource.com/go $HOME/gotip
    23          cd $HOME/gotip/src
    24          ./make.bash
    25          echo "::set-env name=GOROOT::$HOME/gotip"
    26          echo "::add-path::$HOME/gotip/bin"
    27          echo "::add-path::$(go env GOPATH)/bin"
    28      - name: Test
    29        run: go test -v -race ./...
    30      - name: Upload code coverage to codecov
    31        if: matrix.go == '1.16'
    32        uses: codecov/codecov-action@v1
    33        with:
    34          file: ./coverage.out
    35

View as plain text