go-hep.org/x/hep@v0.38.1/.woodpecker/build.yml (about)

     1  when:
     2    - event: [push, pull_request, tag]
     3      branch: ${CI_REPO_DEFAULT_BRANCH}
     4  
     5  steps:
     6    build:
     7      image: codeberg.org/go-hep/groot-docker:6.36.02
     8      environment:
     9        CGO_ENABLED: 1
    10        GOVERSION: "1.25.0"
    11        GOPROXY: "https://proxy.golang.org"
    12        GOTAGS: "-tags=ci"
    13        GORACE: "" ## or "-race"
    14        GOCOVERAGE: "-coverpkg=go-hep.org/x/hep/..."
    15  
    16      commands:
    17        - . /opt/root/setup-groot.sh
    18        - root.exe --version
    19        - export PATH=/root/go/bin:$PATH
    20        - go mod tidy
    21        - GOARCH=amd64 go install -v $GOTAGS ./...
    22        - go run ./ci/run-tests.go $GOTAGS $GORACE $GOCOVERAGE
    23        - go vet $GOTAGS ./...
    24        - go install honnef.co/go/tools/cmd/staticcheck@latest
    25        - staticcheck ./...
    26  
    27    codecov:
    28      image: woodpeckerci/plugin-codecov
    29      settings:
    30        files:
    31          - coverage.txt
    32        token:
    33          from_secret: codecov_token