diff options
-rw-r--r-- | .github/workflows/ci.yml | 22 | ||||
-rw-r--r-- | .gitignore | 47 | ||||
-rwxr-xr-x | scripts/build.sh (renamed from scripts/build_coreth.sh) | 0 | ||||
-rwxr-xr-x | scripts/build_test.sh | 7 |
4 files changed, 76 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..31ae101 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI +on: [pull_request, push] + +jobs: + test: + name: Golang v${{ matrix.go }} (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + matrix: + go: ['1.15'] + os: [macos-10.15, macos-11.0, ubuntu-18.04, ubuntu-20.04, windows-latest] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go }} + - run: go mod download + shell: bash + - run: ./scripts/build.sh evm + shell: bash + - run: ./scripts/build_test.sh + shell: bash @@ -1 +1,48 @@ ./main + +*.log +*~ +.DS_Store + +awscpu + +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib +*.profile + +# Test binary, build with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# ignore GoLand metafiles directory +.idea/ + +*logs/ + +.vscode* + +*.pb* + +db* + +*cpu[0-9]* +*mem[0-9]* +*lock[0-9]* +*.profile +*.swp +*.aux +*.fdb* +*.fls +*.gz +*.pdf + +.coverage + +bin/ +build/ diff --git a/scripts/build_coreth.sh b/scripts/build.sh index 41fab1b..41fab1b 100755 --- a/scripts/build_coreth.sh +++ b/scripts/build.sh diff --git a/scripts/build_test.sh b/scripts/build_test.sh new file mode 100755 index 0000000..46a619f --- /dev/null +++ b/scripts/build_test.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -o errexit +set -o nounset +set -o pipefail + +go test -race -timeout="90s" -coverprofile="coverage.out" -covermode="atomic" ./plugin/... |