Skip to content

Add files via upload #3

Add files via upload

Add files via upload #3

Workflow file for this run

name: Go package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.18', '1.19']
steps:
- uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Build
run: make build -B
# -------------- Test utilities
- name: Test util
run: go test -v github.com/supragya/EtherScope/util -v -cover -coverpkg=github.com/supragya/EtherScope/util -coverprofile=profile.cov
- name: Coverage report for util
run: go tool cover -func profile.cov
# -------------- Test masterslave pool
- name: Test mspool
run: go test -v github.com/supragya/EtherScope/mspool -v -cover -coverpkg=github.com/supragya/EtherScope/mspool -coverprofile=profile.cov
- name: Coverage report for mspool
run: go tool cover -func profile.cov
# -------------- Test gograph
- name: Test indexer
run: go test -v github.com/supragya/EtherScope/gograph -v -cover -coverpkg=github.com/supragya/EtherScope/gograph -coverprofile=profile.cov
- name: Coverage report for gograph
run: go tool cover -func profile.cov
# -------------- Test realtime indexer
- name: Test indexer
run: go test -v github.com/supragya/EtherScope/indexer -v -cover -coverpkg=github.com/supragya/EtherScope/indexer -coverprofile=profile.cov
- name: Coverage report for indexer
run: go tool cover -func profile.cov
# - name: Test all modules
# run: find . -name go.mod -execdir go test ./... -v -cover -coverpkg=./... -coverprofile=profile.cov ./... \;
# - name: Coverage for all modules
# run: find . -name go.mod -execdir go tool cover -func profile.cov \;