mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Bump various GitHub Actions versions to move away from those using the deprecated node.js 12 runtime, and so remove the warnings. For the coveralls action, I switched to just `@v2`, per their example docs and as we do for most actions, instead of major.minor.patch. For Golang, update one 1.16 to 1.19, and quote the remaining unquoted instances, even though they had `.x` in there so had to parse as strings, because we're just switching to always-quoting for consistency.
45 lines
982 B
YAML
45 lines
982 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@v3
|
|
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@v2
|
|
with:
|
|
github-token: ${{ secrets.github_token }}
|
|
path-to-lcov: coverage.lcov
|