Add GHA with Tests & Lintsfeature/sql-semaphore1
@ -0,0 +1,16 @@ |
|||||
|
name: Lint |
||||
|
on: [ push, pull_request ] |
||||
|
jobs: |
||||
|
lint: |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Install Go |
||||
|
uses: actions/setup-go@v1 |
||||
|
with: |
||||
|
go-version: 1.14.x |
||||
|
- name: Checkout code |
||||
|
uses: actions/checkout@v2 |
||||
|
- name: Lint |
||||
|
run: | |
||||
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.24.0 |
||||
|
$(go env GOPATH)/bin/golangci-lint run |
@ -0,0 +1,22 @@ |
|||||
|
name: Test |
||||
|
on: [ push, pull_request ] |
||||
|
jobs: |
||||
|
test: |
||||
|
strategy: |
||||
|
matrix: |
||||
|
go-version: [ 1.13.x, 1.14.x ] |
||||
|
goarch: [ "amd64", "386" ] |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Install Go |
||||
|
uses: actions/setup-go@v1 |
||||
|
with: |
||||
|
go-version: ${{ matrix.go-version }} |
||||
|
env: |
||||
|
GOARCH: ${{ matrix.goarch }} |
||||
|
- name: Checkout code |
||||
|
uses: actions/checkout@v2 |
||||
|
- name: Test |
||||
|
env: |
||||
|
GOARCH: ${{ matrix.goarch }} |
||||
|
run: go test ./... |
@ -1,2 +1,3 @@ |
|||||
# hermez-node |
|
||||
|
# hermez-node [![Go Report Card](https://goreportcard.com/badge/github.com/hermeznetwork/hermez-node)](https://goreportcard.com/report/github.com/hermeznetwork/hermez-node) [![Test Status](https://github.com/hermeznetwork/hermez-node/workflows/Test/badge.svg)](https://github.com/hermeznetwork/hermez-node/actions?query=workflow%3ATest) [![Lint Status](https://github.com/hermeznetwork/hermez-node/workflows/Lint/badge.svg)](https://github.com/hermeznetwork/hermez-node/actions?query=workflow%3ALint) [![GoDoc](https://godoc.org/github.com/hermeznetwork/hermez-node?status.svg)](https://godoc.org/github.com/hermeznetwork/hermez-node) |
||||
|
|
||||
Go implementation of the Hermez node. |
Go implementation of the Hermez node. |