mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 21:57:16 +00:00
9d42148b93
* updates go.sum * go mod tidy checker * reverts go.sum * updates apk command * fixes path * show git status * more debug info * more debug info * minor test * get rid of git * multiple checks * test reset * change order of checkers * mod verify * broken sum * Merge refs/heads/master into go-mod-tidy * better info * Merge branch 'go-mod-tidy' of github.com:prysmaticlabs/prysm into go-mod-tidy * better info * reset * run go mod tidy to fix
51 lines
922 B
YAML
51 lines
922 B
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: ./
|
|
|
|
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
|
|
run: go build -v ./...
|
|
|
|
# Tests run via Bazel for now...
|
|
# - name: Test
|
|
# run: go test -v ./...
|