Files
nats-server/.github/workflows/cov.yaml
Ivan Kozlovic 4187413281 Change nightly to build from dev instead of main [ci skip]
Also updated some of the actions to avoid some deprecation warnings

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-11-02 11:52:36 -06:00

45 lines
983 B
YAML

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/gcov2lcov-action@v1.0.9
with:
infile: acc.out
- name: Coveralls
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov