Update protocol to support multi-user undo and redo on Text.edit #2076
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
GO_VERSION: '1.19.2' | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go ${{ env.GO_VERSION }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Setup buf action | |
uses: bufbuild/buf-setup-action@v1 | |
with: | |
github_token: ${{ github.token }} | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Get tools dependencies | |
run: make tools | |
- name: Lint | |
run: make lint | |
- name: Lint proto files | |
uses: bufbuild/buf-lint-action@v1 | |
- name: Build | |
run: make build | |
- name: Stack | |
run: docker-compose -f build/docker/docker-compose.yml up --build -d | |
- name: Test | |
run: go test -tags integration -race -coverprofile=coverage.txt -covermode=atomic -v ./... | |
- name: Bench | |
run: make bench | |
- name: Download previous benchmark data | |
uses: actions/cache@v3 | |
with: | |
path: ./cache | |
key: ${{ runner.os }}-benchmark | |
- name: Store benchmark result | |
uses: benchmark-action/github-action-benchmark@v1 | |
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | |
with: | |
name: Go Benchmark | |
tool: 'go' | |
output-file-path: output.txt | |
external-data-json-path: ./cache/benchmark-data.json | |
fail-on-alert: false | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
comment-always: true | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./coverage.txt |