...

Text file src/github.com/grpc-ecosystem/go-grpc-middleware/.github/workflows/go.yaml

Documentation: github.com/grpc-ecosystem/go-grpc-middleware/.github/workflows

     1name: go
     2
     3on:
     4  push:
     5    branches:
     6      - master
     7    tags:
     8  pull_request:
     9
    10jobs:
    11  tests:
    12    runs-on: ${{ matrix.platform }}
    13    name: Unit tests on Go ${{ matrix.go }} / ${{ matrix.platform }}
    14    strategy:
    15      fail-fast: false
    16      matrix:
    17        go: [ '1.18.x', '1.19.x', '1.20.x' ]
    18        platform: [ubuntu-latest, macos-latest]
    19    steps:
    20      - name: Checkout code into the Go module directory.
    21        uses: actions/checkout@v2
    22
    23      - name: Install Go
    24        uses: actions/setup-go@v2
    25        with:
    26          go-version: ${{ matrix.go }}
    27
    28      - uses: actions/cache@v1
    29        with:
    30          path: ~/go/pkg/mod
    31          key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    32
    33      - name: Run unit tests.
    34        run: make test

View as plain text