get.pme.sh/pnats@v0.0.0-20240304004023-26bb5a137ed0/.github/workflows/cov.yaml (about) 1 name: NATS Server Code Coverage 2 on: 3 workflow_dispatch: {} 4 5 schedule: 6 - cron: "40 4 * * *" 7 8 jobs: 9 nightly_coverage: 10 runs-on: ubuntu-latest 11 12 env: 13 GOPATH: /home/runner/work/nats-server 14 GO111MODULE: "on" 15 16 steps: 17 - name: Checkout code 18 uses: actions/checkout@v4 19 with: 20 path: src/github.com/nats-io/nats-server 21 22 - name: Set up Go 23 uses: actions/setup-go@v5 24 with: 25 go-version: "1.21.x" 26 27 - name: Run code coverage 28 shell: bash --noprofile --norc -x -eo pipefail {0} 29 run: | 30 set -e 31 cd src/github.com/nats-io/nats-server 32 ./scripts/cov.sh upload 33 set +e 34 35 - name: Convert coverage.out to coverage.lcov 36 uses: jandelgado/gcov2lcov-action@v1.0.9 37 with: 38 infile: acc.out 39 working-directory: src/github.com/nats-io/nats-server 40 41 - name: Coveralls 42 uses: coverallsapp/github-action@v2 43 with: 44 github-token: ${{ secrets.github_token }} 45 file: src/github.com/nats-io/nats-server/coverage.lcov