feat(eddsa): Added EDDSA crypto module #639
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go Test and Coverage | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: ['1.20'] | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build # ubuntu-latest | |
~/Library/Caches/go-build # macos-latest | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Go environment | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Download dependencies | |
run: go mod download | |
- name: Run Go tests | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
go test -v -timeout 5m -coverpkg=./... -coverprofile=coverage.tmp.txt -covermode=atomic ./... | |
grep -v -E ".pb.go|_mock.go" coverage.tmp.txt > coverage.txt | |
else | |
go test -v -timeout 2m ./... | |
fi | |
shell: bash | |
env: | |
HOTSTUFF_LOG: info | |
- name: Run docker tests | |
if: runner.os == 'Linux' | |
run: | | |
cd scripts | |
bash deploy_test.sh | |
- name: Upload code coverage report to Codecov | |
if: runner.os == 'Linux' | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.txt | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: true | |
verbose: true |