add time ms and txn to encoded json (#132) #295
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: Lint | |
env: | |
GO_VERSION: '1.22.3' | |
LINTER_VERSION: 'v1.58.1' | |
on: push | |
jobs: | |
lint: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- uses: actions/checkout@v2 | |
- name: Cache Vendor | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-vendor-v1 | |
with: | |
path: vendor | |
key: ${{ env.cache-name }}-${{ env.GO_VERSION }}-${{ hashFiles('go.mod') }}-${{ hashFiles('go.sum') }} | |
restore-keys: | | |
${{ env.cache-name }}-${{ env.GO_VERSION }}- | |
${{ env.cache-name }}- | |
- name: Populate Vendor | |
shell: bash | |
run: | | |
make vendor | |
- shell: bash | |
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@${{ env.LINTER_VERSION }} | |
- shell: bash | |
run: golangci-lint run --out-format=github-actions |