Skip to content

init

init #2

Workflow file for this run

name: test
on: [push]
permissions: read-all
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: code
uses: actions/checkout@v4
- name: go
uses: actions/setup-go@v5
with:
go-version: ^1.22
- name: test
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test -coverprofile=coverage.out -covermode=atomic -cover -json -v ./... 2>&1 | go-junit-report -set-exit-code > tests.xml
- name: fuzz
run: go test -list . | grep Fuzz | xargs -P 8 -I {} go test -fuzz {} -fuzztime 15s .
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: tests.xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out