mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
chore(ci): Fix GoVuln and formatting (#1468)
* chore: CI improvements * revert comment deletions * add cache for windows build * chore * Remove windows build check
This commit is contained in:
commit
cdd61bdd96
12 changed files with 249 additions and 254 deletions
34
.github/matic-cli-config.yml
vendored
34
.github/matic-cli-config.yml
vendored
|
|
@ -1,26 +1,36 @@
|
||||||
defaultStake: 10000
|
devnetType: docker
|
||||||
|
|
||||||
defaultFee: 2000
|
defaultFee: 2000
|
||||||
|
defaultStake: 10000
|
||||||
|
|
||||||
borChainId: 15001
|
borChainId: 15001
|
||||||
heimdallChainId: heimdall-15001
|
heimdallChainId: heimdall-15001
|
||||||
contractsBranch: mardizzone/node-16
|
|
||||||
|
borDockerBuildContext: '../../bor'
|
||||||
|
heimdallDockerBuildContext: 'https://github.com/maticnetwork/heimdall.git#develop'
|
||||||
|
|
||||||
genesisContractsBranch: master
|
genesisContractsBranch: master
|
||||||
sprintSize:
|
contractsBranch: mardizzone/node-16
|
||||||
- '64'
|
|
||||||
blockNumber:
|
|
||||||
- '0'
|
|
||||||
blockTime:
|
blockTime:
|
||||||
- '2'
|
- '2'
|
||||||
|
blockNumber:
|
||||||
|
- '0'
|
||||||
|
|
||||||
|
sprintSize:
|
||||||
|
- '64'
|
||||||
|
sprintSizeBlockNumber:
|
||||||
|
- '0'
|
||||||
|
|
||||||
numOfBorValidators: 3
|
numOfBorValidators: 3
|
||||||
numOfBorSentries: 0
|
numOfBorSentries: 0
|
||||||
numOfBorArchiveNodes: 0
|
numOfBorArchiveNodes: 0
|
||||||
|
|
||||||
|
devnetBorFlags: config,config,config
|
||||||
|
|
||||||
numOfErigonValidators: 0
|
numOfErigonValidators: 0
|
||||||
numOfErigonSentries: 0
|
numOfErigonSentries: 0
|
||||||
numOfErigonArchiveNodes: 0
|
numOfErigonArchiveNodes: 0
|
||||||
|
|
||||||
ethURL: http://ganache:9545
|
ethURL: http://ganache:9545
|
||||||
ethHostUser: ubuntu
|
ethHostUser: ubuntu
|
||||||
devnetType: docker
|
|
||||||
borDockerBuildContext: "../../bor"
|
|
||||||
heimdallDockerBuildContext: "https://github.com/maticnetwork/heimdall.git#develop"
|
|
||||||
sprintSizeBlockNumber:
|
|
||||||
- '0'
|
|
||||||
devnetBorFlags: config,config,config
|
|
||||||
|
|
|
||||||
2
.github/no-response.yml
vendored
2
.github/no-response.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
# Number of days of inactivity before an Issue is closed for lack of response
|
# Number of days of inactivity before an Issue is closed for lack of response
|
||||||
daysUntilClose: 30
|
daysUntilClose: 30
|
||||||
# Label requiring a response
|
# Label requiring a response
|
||||||
responseRequiredLabel: "need:more-information"
|
responseRequiredLabel: 'need:more-information'
|
||||||
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
|
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
|
||||||
closeComment: >
|
closeComment: >
|
||||||
This issue has been automatically closed because there has been no response
|
This issue has been automatically closed because there has been no response
|
||||||
|
|
|
||||||
2
.github/stale.yml
vendored
2
.github/stale.yml
vendored
|
|
@ -7,7 +7,7 @@ exemptLabels:
|
||||||
- pinned
|
- pinned
|
||||||
- security
|
- security
|
||||||
# Label to use when marking an issue as stale
|
# Label to use when marking an issue as stale
|
||||||
staleLabel: "status:inactive"
|
staleLabel: 'status:inactive'
|
||||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||||
markComment: >
|
markComment: >
|
||||||
This issue has been automatically marked as stale because it has not had
|
This issue has been automatically marked as stale because it has not had
|
||||||
|
|
|
||||||
12
.github/workflows/amoy_deb_profiles.yml
vendored
12
.github/workflows/amoy_deb_profiles.yml
vendored
|
|
@ -29,7 +29,6 @@ jobs:
|
||||||
NUMERIC_VERSION=$( echo ${{ env.GIT_TAG }} | sed 's/[^0-9.]//g' )
|
NUMERIC_VERSION=$( echo ${{ env.GIT_TAG }} | sed 's/[^0-9.]//g' )
|
||||||
echo "VERSION=$NUMERIC_VERSION" >> $GITHUB_ENV
|
echo "VERSION=$NUMERIC_VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
|
||||||
- name: Making directory structure for yaml
|
- name: Making directory structure for yaml
|
||||||
run: mkdir -p packaging/deb/bor/var/lib/bor
|
run: mkdir -p packaging/deb/bor/var/lib/bor
|
||||||
- name: making directory structure for the systemd
|
- name: making directory structure for the systemd
|
||||||
|
|
@ -391,14 +390,3 @@ jobs:
|
||||||
packaging/deb/bor-pbss-amoy-**.deb
|
packaging/deb/bor-pbss-amoy-**.deb
|
||||||
packaging/deb/bor-amoy-**.deb.checksum
|
packaging/deb/bor-amoy-**.deb.checksum
|
||||||
packaging/deb/bor-pbss-amoy-**.deb.checksum
|
packaging/deb/bor-pbss-amoy-**.deb.checksum
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
|
|
@ -2,12 +2,12 @@ name: CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "master"
|
- 'master'
|
||||||
- "qa"
|
- 'qa'
|
||||||
- "develop"
|
- 'develop'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- "**"
|
- '**'
|
||||||
types: [opened, synchronize]
|
types: [opened, synchronize]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|
@ -16,11 +16,14 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: Build
|
||||||
|
|
||||||
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-22.04 ] # list of os: https://github.com/actions/virtual-environments
|
os: [ubuntu-22.04] # List of OS: https://github.com/actions/virtual-environments
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: |
|
- run: |
|
||||||
|
|
@ -51,7 +54,7 @@ jobs:
|
||||||
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-22.04 ] # list of os: https://github.com/actions/virtual-environments
|
os: [ubuntu-22.04] # List of OS: https://github.com/actions/virtual-environments
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -79,7 +82,7 @@ jobs:
|
||||||
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-22.04 ] # list of os: https://github.com/actions/virtual-environments
|
os: [ubuntu-22.04] # List of OS: https://github.com/actions/virtual-environments
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -112,7 +115,7 @@ jobs:
|
||||||
name: unitTest-coverage
|
name: unitTest-coverage
|
||||||
path: cover.out
|
path: cover.out
|
||||||
|
|
||||||
#- name: Data race tests
|
# - name: Data race tests
|
||||||
# run: make test-race
|
# run: make test-race
|
||||||
|
|
||||||
# # TODO: make it work
|
# # TODO: make it work
|
||||||
|
|
@ -130,7 +133,7 @@ jobs:
|
||||||
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-22.04 ] # list of os: https://github.com/actions/virtual-environments
|
os: [ubuntu-22.04] # List of OS: https://github.com/actions/virtual-environments
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -167,7 +170,7 @@ jobs:
|
||||||
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-22.04 ] # list of os: https://github.com/actions/virtual-environments
|
os: [ubuntu-22.04] # List of OS: https://github.com/actions/virtual-environments
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: [unit-tests, integration-tests]
|
needs: [unit-tests, integration-tests]
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -182,7 +185,7 @@ jobs:
|
||||||
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
if: (github.event.action != 'closed' || github.event.pull_request.merged == true)
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-22.04 ] # list of os: https://github.com/actions/virtual-environments
|
os: [ubuntu-22.04] # List of OS: https://github.com/actions/virtual-environments
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
|
||||||
10
.github/workflows/codeql.yml
vendored
10
.github/workflows/codeql.yml
vendored
|
|
@ -1,10 +1,10 @@
|
||||||
name: "CodeQL"
|
name: 'CodeQL'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master", "develop" ]
|
branches: ['master', 'develop']
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master", "develop" ]
|
branches: ['master', 'develop']
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
language: [ 'go' ]
|
language: ['go']
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
@ -43,4 +43,4 @@ jobs:
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v2
|
uses: github/codeql-action/analyze@v2
|
||||||
with:
|
with:
|
||||||
category: "/language:${{matrix.language}}"
|
category: '/language:${{matrix.language}}'
|
||||||
|
|
|
||||||
6
.github/workflows/govulncheck.yml
vendored
6
.github/workflows/govulncheck.yml
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
name: Govuln
|
name: Govuln
|
||||||
on: [ push, pull_request ]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
govulncheck:
|
govulncheck:
|
||||||
|
|
@ -8,7 +8,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.23.6"
|
go-version: '1.23.6'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: technote-space/get-diff-action@v6
|
- uses: technote-space/get-diff-action@v6
|
||||||
|
|
@ -20,4 +20,4 @@ jobs:
|
||||||
Makefile
|
Makefile
|
||||||
- name: govulncheck
|
- name: govulncheck
|
||||||
run: make vulncheck
|
run: make vulncheck
|
||||||
if: "env.GIT_DIFF != ''"
|
if: env.GIT_DIFF != ''
|
||||||
|
|
|
||||||
3
.github/workflows/mainnet_deb_profiles.yml
vendored
3
.github/workflows/mainnet_deb_profiles.yml
vendored
|
|
@ -29,7 +29,6 @@ jobs:
|
||||||
NUMERIC_VERSION=$( echo ${{ env.GIT_TAG }} | sed 's/[^0-9.]//g' )
|
NUMERIC_VERSION=$( echo ${{ env.GIT_TAG }} | sed 's/[^0-9.]//g' )
|
||||||
echo "VERSION=$NUMERIC_VERSION" >> $GITHUB_ENV
|
echo "VERSION=$NUMERIC_VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
|
||||||
- name: Making directory structure for yaml
|
- name: Making directory structure for yaml
|
||||||
run: mkdir -p packaging/deb/bor/var/lib/bor
|
run: mkdir -p packaging/deb/bor/var/lib/bor
|
||||||
- name: making directory structure for the systemd
|
- name: making directory structure for the systemd
|
||||||
|
|
@ -387,8 +386,6 @@ jobs:
|
||||||
NODE: archive
|
NODE: archive
|
||||||
NETWORK: mainnet
|
NETWORK: mainnet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
############ Check and Upload ##########################
|
############ Check and Upload ##########################
|
||||||
- name: Confirming package built
|
- name: Confirming package built
|
||||||
run: ls -ltr packaging/deb/ | grep bor
|
run: ls -ltr packaging/deb/ | grep bor
|
||||||
|
|
|
||||||
1
.github/workflows/packager_deb.yml
vendored
1
.github/workflows/packager_deb.yml
vendored
|
|
@ -97,7 +97,6 @@ jobs:
|
||||||
echo "Maintainer: devops@polygon.technology" >> packaging/deb/bor/DEBIAN/control
|
echo "Maintainer: devops@polygon.technology" >> packaging/deb/bor/DEBIAN/control
|
||||||
echo "Description: bor binary package" >> packaging/deb/bor/DEBIAN/control
|
echo "Description: bor binary package" >> packaging/deb/bor/DEBIAN/control
|
||||||
|
|
||||||
|
|
||||||
- name: Creating package for binary for bor ${{ env.ARCH }}
|
- name: Creating package for binary for bor ${{ env.ARCH }}
|
||||||
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }}
|
run: cp -rp packaging/deb/bor packaging/deb/bor-${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
1
.github/workflows/stale.yml
vendored
1
.github/workflows/stale.yml
vendored
|
|
@ -11,7 +11,6 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
|
|
|
||||||
1
Makefile
1
Makefile
|
|
@ -90,7 +90,6 @@ lintci-deps:
|
||||||
vulncheck:
|
vulncheck:
|
||||||
@go run golang.org/x/vuln/cmd/govulncheck@latest ./...
|
@go run golang.org/x/vuln/cmd/govulncheck@latest ./...
|
||||||
|
|
||||||
|
|
||||||
goimports:
|
goimports:
|
||||||
goimports -local "$(PACKAGE)" -w .
|
goimports -local "$(PACKAGE)" -w .
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue