--- name: FVT on: [push, pull_request] jobs: fvt: name: Test with Kafka ${{ matrix.kafka-version }} runs-on: ubuntu-latest # We want to run on external PRs, but not on our own internal PRs as they'll be run # by the push to the branch. if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository strategy: fail-fast: false matrix: go-version: [1.19.x] kafka-version: [2.8.2, 3.1.2, 3.2.3, 3.3.1] env: DEBUG: true GOFLAGS: -trimpath KAFKA_VERSION: ${{ matrix.kafka-version }} steps: - uses: actions/checkout@v3 - name: Setup Go uses: actions/setup-go@v3 with: go-version: ${{ matrix.go-version }} - name: Get Go environment id: go-env run: | echo "cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT echo "modcache=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT - name: Set up cache uses: actions/cache@v3 with: path: | ${{ steps.go-env.outputs.cache }} ${{ steps.go-env.outputs.modcache }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - name: Test (Functional) run: make test_functional