Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .buildkite/docker-compose.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .buildkite/pipeline.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
pull_request:
push:
branches:
- main

permissions:
contents: read

jobs:
checks:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
Comment thread
hans-planetscale marked this conversation as resolved.
Resolved
strategy:
fail-fast: false
matrix:
include:
- name: Tests
command: make tests
- name: Formatting
command: make clean-proto && make proto && make fmt && git diff --exit-code
- name: go.mod tidy
command: go mod tidy && git diff --exit-code
- name: Lint
command: make lint
- name: Verify dependency licenses
command: license_finder

env:
DOCKER_BUILDKIT: "1"

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run ${{ matrix.name }}
run: |
docker compose run --rm --build ci sh -c '
git config --global --add safe.directory "$PWD"

${{ matrix.command }}
'
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ on:
branches:
- main

permissions:
contents: read

jobs:
publish:
name: publish buf module
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: setup go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/zizmor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: zizmor

on:
push:
branches: [ "main" ]
pull_request:
paths:
- '.github/**'

permissions:
contents: read
actions: read

jobs:
zizmor:
name: zizmor audit
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
with:
inputs: .
persona: regular
version: "1.25.2"
# Fail the job directly instead of uploading SARIF to code scanning.
advanced-security: false
annotations: true
2 changes: 1 addition & 1 deletion .buildkite/Dockerfile → Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.24-bookworm
FROM golang:1.26-bookworm

RUN apt-get update && apt-get upgrade -y && \
apt-get install -y ruby && gem install license_finder && \
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ TOOL_INSTALL := env GOBIN=$(PWD)/$(BIN) go install
$(BIN)/protoc-gen-go: go.mod | $(BIN)
$(TOOL_INSTALL) google.golang.org/protobuf/cmd/protoc-gen-go

$(BIN)/protoc-gen-go-vtproto: Makefile | $(BIN)
$(TOOL_INSTALL) github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto@v0.6.0
$(BIN)/protoc-gen-go-vtproto: go.mod | $(BIN)
$(TOOL_INSTALL) github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto

$(BIN)/protoc-gen-connect-go: go.mod | $(BIN)
$(TOOL_INSTALL) connectrpc.com/connect/cmd/protoc-gen-connect-go
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
ci:
build:
context: .
dockerfile: Dockerfile.ci
volumes:
- .:/src
working_dir: /src
Loading