Skip to content

feat: LPPD wheat distribution mechanism #10318

feat: LPPD wheat distribution mechanism

feat: LPPD wheat distribution mechanism #10318

Workflow file for this run

name: Golang CI
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v3
with:
go-version: 1.21
- uses: actions/checkout@v3
- name: Build
run: make install
- name: Test
run: |
go test -v ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg $(go list ./... | grep -v test | tr "\n" ",")
excludelist="$(find ./ -type f -name '*.go' | xargs grep -l 'DONTCOVER')"
for filename in ${excludelist}; do
filename=$(echo $filename | sed 's/^../github.com\/Sifchain\/sifnode/g')
echo "Excluding ${filename} from coverage report..."
sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt
done
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
file: ./coverage.txt
verbose: true