Browse Source

Merge pull request #2 from hermeznetwork/feature/gha

Add GHA with Tests & Lints
feature/sql-semaphore1
Eduard S 4 years ago
committed by GitHub
parent
commit
1a50e60bfc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions
  1. +16
    -0
      .github/workflows/lint.yml
  2. +22
    -0
      .github/workflows/test.yml
  3. +2
    -1
      README.md

+ 16
- 0
.github/workflows/lint.yml

@ -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

+ 22
- 0
.github/workflows/test.yml

@ -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 ./...

+ 2
- 1
README.md

@ -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.

Loading…
Cancel
Save