Skip to content

Commit

Permalink
Run functional tests on latest Go only
Browse files Browse the repository at this point in the history
  • Loading branch information
bai committed Feb 1, 2022
1 parent 2d3a2f4 commit c51d007
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]

jobs:
test:
name: Go ${{ matrix.go-version }} with Kafka ${{ matrix.kafka-version }} on Ubuntu
name: Go ${{ matrix.go-version }} 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.
Expand All @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
go-version: [1.16.x, 1.17.x]
kafka-version: [3.0.0, 3.1.0]
kafka-version: [2.8.1, 3.0.0, 3.1.0]
platform: [ubuntu-latest]

env:
Expand Down Expand Up @@ -46,13 +46,17 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.0
export REPOSITORY_ROOT=${GITHUB_WORKSPACE}
- name: Test (Unit)
run: make test
if: ${{ matrix.go-version != '1.17.x' }}

- name: Run test suite
- name: Test (Functional)
run: make test_functional
if: ${{ matrix.go-version == '1.17.x' }}

- name: Run linter
run: make lint
- name: Lint
uses: golangci/golangci-lint-action@v2
if: ${{ matrix.go-version == '1.17.x' }}
with:
version: v1.44.0
args: --enable goimports

0 comments on commit c51d007

Please sign in to comment.