Skip to content

Fix app data component type #1378

Fix app data component type

Fix app data component type #1378

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
js:
name: Test (JS)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version-file: ".node-version"
cache: "npm"
- run: npm ci
- run: npm test
kotlin:
name: Test (Kotlin)
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v5
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "11"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
validate-wrappers: true
cache-read-only: false
- name: Generate protobufs
run: dev/kotlin/generate
- name: Run build with Gradle Wrapper
run: ./gradlew build
- name: Gradle Run Tests
run: ./gradlew kotlin:test
golang:
name: Test (Golang)
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v5
- uses: actions/checkout@v5
with:
repository: "xmtp/xmtpd"
path: xmtpd
- uses: actions/setup-go@v6
with:
go-version: ">=1.26.0"
- name: Install Go tools
run: |
cd xmtpd
go install -modfile=tools/go.mod github.com/bufbuild/buf/cmd/buf
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest
- name: Execute xmtpd protos builder
run: |
cd xmtpd
shopt -s globstar
rm -rf pkg/proto/**/*.pb.go pkg/proto/**/*.pb.gw.go pkg/proto/**/*.swagger.json
shopt -u globstar
go tool -modfile=tools/go.mod buf generate ../proto/
go build ./...