Skip to content

Merge pull request #336 from R3gardless/feature/fix-allow-quota-typo #989

Merge pull request #336 from R3gardless/feature/fix-allow-quota-typo

Merge pull request #336 from R3gardless/feature/fix-allow-quota-typo #989

Workflow file for this run

name: Coverage
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18.x
- name: Test
run: cd ddosify_engine && go test -coverpkg=./... -coverprofile=coverage.txt -parallel 1 -covermode=atomic -short ./... && go tool cover -func coverage.txt
- name: Upload reports to codecov
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -f coverage.txt
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}