Skip to content

Implement topic compaction (#350) #657

Implement topic compaction (#350)

Implement topic compaction (#350) #657

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Change Validation
on:
push:
branches: [ "main"]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
DOCKER_API_VERSION: 1.43
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build
run: go build -v ./...
run-unit-tests:
needs: build
runs-on: ubuntu-latest
env:
DOCKER_API_VERSION: 1.43
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y etcd-server default-jre
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Run Unit Tests
run: gotestsum -f github-actions -- -race -count=1 -p=1 -timeout 10m -failfast ./...
run-integration-tests:
needs: build
runs-on: ubuntu-latest
env:
DOCKER_API_VERSION: 1.43
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y etcd-server default-jre
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Run Integration Tests
run: gotestsum -f github-actions -- -race -count=1 -p=1 -timeout 10m -failfast -tags=integration ./integration/...