Skip to content

perf: proto.Any will no longer allocate slice #518

perf: proto.Any will no longer allocate slice

perf: proto.Any will no longer allocate slice #518

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: CI
on:
push:
branches: ["master"]
paths:
- "**.go" # Trigger only when Go files are modified
pull_request:
branches: ["master"]
paths:
- "**.go" # Trigger only when Go files are modified
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["oldstable", "stable"] # supports two most recent Go versions
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ matrix.go }}
- name: Test using predecessor Go version
if: matrix.go == 'oldstable'
run: go test -cover ./...
- name: Test using latest Go version
if: matrix.go == 'stable'
run: go test -v -cover -coverprofile=coverage.coverprofile ./...
- name: Upload coverage reports to Codecov
if: matrix.go == 'stable' # only sent the converage reports when using latest Go version
uses: codecov/codecov-action@6d798873df2b1b8e5846dba6fb86631229fbcb17 # v4.4.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}