...

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

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

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

View as plain text