mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-07 02:02:18 +00:00
394bd1786a
* fixing squashing changes, migrates beacon , account, and auth endpoints on validator client * adding accounts endpoints * fixing tests and query endpoints * adding auth endpoint and fixing unit tests * removing unused files and updating node file to skip gRPC * ineffectual assignment fix * rolling back a change to fix e2e * fixing issues with ui * updating with webui version 2.0.5 * updating package name flag in readme * removing restore assets functions * adding nomemcopy flag to see if vulenerability scan passes * making data non compressed to avoid copy vulnerability * Update beacon-chain/rpc/eth/shared/structs_validator.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * updating site_data, and skipping static analysis on file * adding back deprecation comment notice * updating workflows to ignore generated * addressing radek comments * missed a conversion --------- Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
90 lines
2.2 KiB
YAML
90 lines
2.2 KiB
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ '*' ]
|
|
|
|
jobs:
|
|
formatting:
|
|
name: Formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Go mod tidy checker
|
|
id: gomodtidy
|
|
uses: ./.github/actions/gomodtidy
|
|
|
|
gosec:
|
|
name: Gosec scan
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GO111MODULE: on
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Set up Go 1.20
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '1.20'
|
|
- name: Run Gosec Security Scanner
|
|
run: | # https://github.com/securego/gosec/issues/469
|
|
export PATH=$PATH:$(go env GOPATH)/bin
|
|
go install github.com/securego/gosec/v2/cmd/gosec@v2.15.0
|
|
gosec -exclude-generated -exclude=G307 -exclude-dir=crypto/bls/herumi ./...
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Go 1.20
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '1.20'
|
|
id: go
|
|
|
|
- name: Golangci-lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: v1.52.2
|
|
args: --config=.golangci.yml --out-${NO_FUTURE}format colored-line-number
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '1.20'
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
go get -v -t -d ./...
|
|
|
|
- name: Build
|
|
# Use blst tag to allow go and bazel builds for blst.
|
|
run: go build -v ./...
|
|
env:
|
|
CGO_CFLAGS: "-O2 -D__BLST_PORTABLE__"
|
|
# fuzz leverage go tag based stubs at compile time.
|
|
# Building and testing with these tags should be checked and enforced at pre-submit.
|
|
- name: Test for fuzzing
|
|
run: go test -tags=fuzz,develop ./... -test.run=^Fuzz
|
|
env:
|
|
CGO_CFLAGS: "-O2 -D__BLST_PORTABLE__"
|
|
|
|
# Tests run via Bazel for now...
|
|
# - name: Test
|
|
# run: go test -v ./...
|