Skip to content

feat: add original message formatting helpers with tests #1107

feat: add original message formatting helpers with tests

feat: add original message formatting helpers with tests #1107

Workflow file for this run

name: Lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
workflow_dispatch:
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Install Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Lint
# v8+ installs golangci-lint v2, which the .golangci.yml (version "2")
# requires; the v6 line defaults to v1 and rejects the config.
uses: golangci/golangci-lint-action@v9
with:
version: v2.12.2
args: --timeout 5m
# Check that go.mod/go.sum are tidy.
check-mod:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Install Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Tidy
run: go mod tidy
- name: Check git diff
run: git diff --exit-code