diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bbc695ae..abeed512 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -296,3 +296,24 @@ jobs: with: path-to-profile: coverage.txt parallel: true + + ######################## + # check pinned dependencies + ######################## + dep-pin: + name: check pinned dependencies + runs-on: ubuntu-latest + strategy: + # Allow other tests in the matrix to continue if one fails. + fail-fast: false + matrix: + pinned_dep: + - google.golang.org/grpc v1.24.0 + - github.com/golang/protobuf v1.3.2 + + steps: + - name: git checkout + uses: actions/checkout@v2 + + - name: ensure dependences at correct version + run: if ! grep -q "${{ matrix.pinned_dep }}" go.mod; then echo dependency ${{ matrix.pinned_dep }} should not be altered ; exit 1 ; fi