Skip to content

chore(deps): bump github.com/prometheus/common from 0.63.0 to 0.64.0 #1717

chore(deps): bump github.com/prometheus/common from 0.63.0 to 0.64.0

chore(deps): bump github.com/prometheus/common from 0.63.0 to 0.64.0 #1717

Workflow file for this run

name: ci
on:
pull_request:
merge_group:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GO_VERSION: "1.23" # https://go.dev/dl/
FOUNDRY_VERSION: stable
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.64.8
- name: Install shadow
run: go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest
- name: Run all the linter tools against code
run: make lint
gen-doc:
name: Check gen-doc generated files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: gen-doc
run: make gen-doc
- name: Check if generated files are up to date
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "❌ Error: Generated files are not up to date. Please run \`make gen\`."
echo "🚨 If \`make gen\` doesn't update the contract bytecodes and/or go bindings and this job is still failing, please take a look at the ethereum and foundry versions. We don't pin the versions of these packages in CI so this job may complain after an update of the packages!"
git status --porcelain
git diff
exit 1
else
echo "✅ Generated files are up to date."
fi
gen-proto:
name: Check gen-proto generated files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: gen-proto
run: make gen-proto
- name: Check if generated files are up to date
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "❌ Error: Generated files are not up to date. Please run \`make gen\`."
echo "🚨 If \`make gen\` doesn't update the contract bytecodes and/or go bindings and this job is still failing, please take a look at the ethereum and foundry versions. We don't pin the versions of these packages in CI so this job may complain after an update of the packages!"
git status --porcelain
git diff
exit 1
else
echo "✅ Generated files are up to date."
fi
gen-go-bindings:
name: Check gen-go-bindings generated files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: gen-go-bindings
run: make gen-go-bindings
- name: Check if generated files are up to date
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "❌ Error: Generated files are not up to date. Please run \`make gen\`."
echo "🚨 If \`make gen\` doesn't update the contract bytecodes and/or go bindings and this job is still failing, please take a look at the ethereum and foundry versions. We don't pin the versions of these packages in CI so this job may complain after an update of the packages!"
git status --porcelain
git diff
exit 1
else
echo "✅ Generated files are up to date."
fi
gen-load-test-modes:
name: Check gen-load-test-modes generated files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: gen-load-test-modes
run: make gen-load-test-modes
- name: Check if generated files are up to date
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "❌ Error: Generated files are not up to date. Please run \`make gen\`."
echo "🚨 If \`make gen\` doesn't update the contract bytecodes and/or go bindings and this job is still failing, please take a look at the ethereum and foundry versions. We don't pin the versions of these packages in CI so this job may complain after an update of the packages!"
git status --porcelain
git diff
exit 1
else
echo "✅ Generated files are up to date."
fi
gen-json-rpc-types:
name: Check gen-json-rpc-types generated files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: gen-json-rpc-types
run: make gen-json-rpc-types
- name: Check if generated files are up to date
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "❌ Error: Generated files are not up to date. Please run \`make gen\`."
echo "🚨 If \`make gen\` doesn't update the contract bytecodes and/or go bindings and this job is still failing, please take a look at the ethereum and foundry versions. We don't pin the versions of these packages in CI so this job may complain after an update of the packages!"
git status --porcelain
git diff
exit 1
else
echo "✅ Generated files are up to date."
fi
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run tests
run: make test
loadtest:
name: Run loadtest
runs-on: ubuntu-latest
strategy:
matrix:
tool: [geth, anvil]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@82dee4ba654bd2146511f85f0d013af94670c4de # v1.4.0
with:
version: ${{ env.FOUNDRY_VERSION }}
- name: Install Geth
run: |
if [ "${{ matrix.tool }}" = "geth" ]; then
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
geth --version
fi
- name: Run loadtest againt ${{ matrix.tool }}
run: |
${{ matrix.tool }} --version
make ${{ matrix.tool }} &
sleep 5
make loadtest
install:
name: Install go package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Install dependencies
run: go get
- name: Install polycli using go
run: go install
- name: Check that polycli has been installed
run: polygon-cli version