Pipelines
- Added code coverage support README - Added coveralls badge
This commit is contained in:
parent
cef8adf2a9
commit
6eb9445042
|
@ -6,9 +6,9 @@ name: D
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "**" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "**" ]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -22,6 +22,11 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
|
- uses: dlang-community/setup-dlang@4c99aa991ce7d19dd3064de0a4f2f6b2f152e2d7
|
||||||
|
|
||||||
|
- name: Install Doveralls (code coverage tool)
|
||||||
|
run: |
|
||||||
|
dub fetch doveralls
|
||||||
|
sudo apt install libcurl4-openssl-dev
|
||||||
|
|
||||||
- name: 'Build & Test'
|
- name: 'Build & Test'
|
||||||
run: |
|
run: |
|
||||||
# Build the project, with its main file included, without unittests
|
# Build the project, with its main file included, without unittests
|
||||||
|
@ -29,4 +34,8 @@ jobs:
|
||||||
# Build and run tests, as defined by `unittest` configuration
|
# Build and run tests, as defined by `unittest` configuration
|
||||||
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
|
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
|
||||||
# See https://dub.pm/package-format-json.html#configurations
|
# See https://dub.pm/package-format-json.html#configurations
|
||||||
dub test --compiler=$DC
|
dub test --compiler=$DC --coverage
|
||||||
|
|
||||||
|
- name: Coverage upload
|
||||||
|
run: |
|
||||||
|
dub run doveralls -- -t ${{secrets.COVERALLS_REPO_TOKEN}}
|
|
@ -1,7 +1,7 @@
|
||||||
bformat
|
bformat
|
||||||
=======
|
=======
|
||||||
|
|
||||||
[![D](https://github.com/besterprotocol/bformat/actions/workflows/d.yml/badge.svg)](https://github.com/besterprotocol/bformat/actions/workflows/d.yml)
|
[![D](https://github.com/besterprotocol/bformat/actions/workflows/d.yml/badge.svg)](https://github.com/besterprotocol/bformat/actions/workflows/d.yml) [![Coverage Status](https://coveralls.io/repos/github/besterprotocol/bformat/badge.svg?branch=master)](https://coveralls.io/github/besterprotocol/bformat?branch=master)
|
||||||
|
|
||||||
A simple message format for automatically length-prefixing messages over any [`Socket`](https://dlang.org/phobos/std_socket.html#.Socket) or [River-based](https://github.com/deavmi/river) [`Stream`](https://river.dpldocs.info/river.core.stream.Stream.html).
|
A simple message format for automatically length-prefixing messages over any [`Socket`](https://dlang.org/phobos/std_socket.html#.Socket) or [River-based](https://github.com/deavmi/river) [`Stream`](https://river.dpldocs.info/river.core.stream.Stream.html).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue