Skip to content

Change random big value to math.MaxInt #2286

Change random big value to math.MaxInt

Change random big value to math.MaxInt #2286

Workflow file for this run

name: CI
on:
pull_request:
branches:
- v*
- develop/*
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go_tags: [ 'stdlib', 'goccy', 'es256k', 'secp256k1-pem', 'asmbase64', 'alltags']
go: [ '1.23', '1.22', '1.21' ]
name: "Test [ Go ${{ matrix.go }} / Tags ${{ matrix.go_tags }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Cache Go modules
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
~/.cache/bazel
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Go stable version
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Install stringer
run: go install golang.org/x/tools/cmd/stringer@latest
- name: Install tparse
run: go install github.com/mfridman/tparse@v0.12.2
- name: Install jose
run: sudo apt-get install -y --no-install-recommends jose
- run: make generate
- name: make tidy
run: make tidy
- name: Test with coverage
run: make cover-${{ matrix.go_tags }}
- uses: bazelbuild/setup-bazelisk@v3
- run: bazel run //:gazelle-update-repos
- name: Check difference between generation code and commit code
run: make check_diffs