Skip to content

staking: use cosmos staking module #2

staking: use cosmos staking module

staking: use cosmos staking module #2

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
- release/**
jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
test-unit-cover:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
- uses: actions/checkout@v4
- uses: technote-space/[email protected]
with:
PATTERNS: |
.github/workflows/test.yml
**/**.sol
**/**.go
go.mod
go.sum
*.toml
- name: Test and Create Coverage Report
run: |
make test-unit-cover
if: env.GIT_DIFF
- uses: codecov/codecov-action@v4
with:
file: ./coverage.txt
# We were getting a 500 error on codecov servers
# so we decided to avoid blocking the CI if this fails
fail_ci_if_error: false
if: env.GIT_DIFF
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}