NATS Server Code Coverage #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NATS Server Code Coverage | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: "40 4 * * *" | |
jobs: | |
nightly_coverage: | |
runs-on: ubuntu-latest | |
env: | |
GOPATH: /home/runner/work/nats-server | |
GO111MODULE: "on" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
with: | |
path: src/github.com/nats-io/nats-server | |
ref: dev | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19.x | |
- name: Run code coverage | |
shell: bash --noprofile --norc -x -eo pipefail {0} | |
run: | | |
set -e | |
./scripts/cov.sh upload | |
set +e | |
- name: Convert coverage.out to coverage.lcov | |
uses: jandelgado/[email protected] | |
with: | |
infile: acc.out | |
- name: Coveralls | |
uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.github_token }} | |
path-to-lcov: coverage.lcov |