mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
8122da6c97
* add gosec security scan * add gosec ignores first batch * more nosec for exec * add filepath clean * more nosec * file inclusion nosec * build * herumi Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ '*' ]
|
|
|
|
jobs:
|
|
|
|
check:
|
|
name: Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Go mod tidy checker
|
|
id: gomodtidy
|
|
uses: ./.github/actions/gomodtidy
|
|
|
|
- name: Gofmt checker
|
|
id: gofmt
|
|
uses: ./.github/actions/gofmt
|
|
with:
|
|
path: ./
|
|
|
|
- name: GoImports checker
|
|
id: goimports
|
|
uses: Jerome1337/goimports-action@v1.0.2
|
|
with:
|
|
goimports-path: ./
|
|
|
|
- name: Gosec security scanner
|
|
uses: securego/gosec@master
|
|
with:
|
|
args: '-exclude-dir=shared/bls/herumi ./...'
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ^1.14
|
|
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 ./...
|
|
|
|
# Tests run via Bazel for now...
|
|
# - name: Test
|
|
# run: go test -v ./...
|