Skip to content

Merge branch 'v23.3.x' into backport-pr-17027-v23.3.x-998 #28

Merge branch 'v23.3.x' into backport-pr-17027-v23.3.x-998

Merge branch 'v23.3.x' into backport-pr-17027-v23.3.x-998 #28

# Copyright 2023 Redpanda Data, Inc.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.md
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0
name: transform-sdk-build
on:
push:
tags:
- '*'
branches:
- '*'
paths:
- 'src/transform-sdk/**'
- '.github/workflows/transform-sdk-build.yml'
pull_request:
branches:
- dev
- 'v*'
paths:
- 'src/transform-sdk/**'
- '.github/workflows/transform-sdk-build.yml'
jobs:
test-golang:
name: Test Golang Transform SDK
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.6
- name: Run tests
working-directory: src/transform-sdk/go/transform
run: go test -v ./...
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 5m
working-directory: src/transform-sdk/go/transform
test-rust:
name: Test Rust Transform SDK
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Rust
run: rustup update stable --no-self-update && rustup default stable
- name: Run tests
working-directory: src/transform-sdk/rust
run: cargo test --workspace
- name: Check format
working-directory: src/transform-sdk/rust
run: cargo fmt --check --all
- name: Run clippy
working-directory: src/transform-sdk/rust
run: cargo clippy --all