Skip to content

Commit f17ff3a

Browse files
authored
Use coveralls instead of codecov (#21)
* Update test-coverage.yaml * update test snapshot * use coveralls action to submit * add xml2 for conversion * update badge
1 parent 60c03af commit f17ff3a

File tree

4 files changed

+91
-85
lines changed

4 files changed

+91
-85
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches: [main, master]
5+
branches: [main]
66
pull_request:
7-
branches: [main, master]
87

98
name: test-coverage
109

@@ -15,16 +14,24 @@ jobs:
1514
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1615

1716
steps:
18-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1918

2019
- uses: r-lib/actions/setup-r@v2
2120
with:
2221
use-public-rspm: true
2322

2423
- uses: r-lib/actions/setup-r-dependencies@v2
2524
with:
26-
extra-packages: any::covr
25+
extra-packages: any::covr, any::xml2
2726

2827
- name: Test coverage
29-
run: covr::codecov()
28+
run: |
29+
cov <- covr::package_coverage()
30+
covr::to_cobertura(cov, "cov.xml")
3031
shell: Rscript {0}
32+
33+
- name: Coveralls GitHub Action
34+
uses: coverallsapp/github-action@v2
35+
with:
36+
format: 'cobertura'
37+
file: 'cov.xml'

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ output:
1111
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
1212
[![R-CMD-check](https://github.com/assignUser/octolog/workflows/R-CMD-check/badge.svg)](https://github.com/assignUser/octolog/actions)
1313
[![pkgcheck](https://github.com/assignUser/octolog/actions/workflows/pkgcheck.yaml/badge.svg)](https://github.com/assignUser/octolog/actions/workflows/pkgcheck.yaml)
14-
[![Codecov test coverage](https://codecov.io/gh/assignUser/octolog/branch/main/graph/badge.svg)](https://app.codecov.io/gh/assignUser/octolog?branch=main)
14+
[![Coverage Status](https://coveralls.io/repos/github/assignUser/octolog/badge.svg?branch=main)](https://coveralls.io/github/assignUser/octolog?branch=main)
1515
[![DOI](https://zenodo.org/badge/451156961.svg)](https://zenodo.org/badge/latestdoi/451156961)
1616
<!-- badges: end -->
1717

README.md

Lines changed: 66 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,66 @@
1-
2-
<!-- README.md is generated from README.Rmd. Please edit that file -->
3-
4-
# octolog
5-
6-
<!-- badges: start -->
7-
8-
[![Project Status: Active – The project has reached a stable, usable
9-
state and is being actively
10-
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
11-
[![R-CMD-check](https://github.com/assignUser/octolog/workflows/R-CMD-check/badge.svg)](https://github.com/assignUser/octolog/actions)
12-
[![pkgcheck](https://github.com/assignUser/octolog/actions/workflows/pkgcheck.yaml/badge.svg)](https://github.com/assignUser/octolog/actions/workflows/pkgcheck.yaml)
13-
[![Codecov test
14-
coverage](https://codecov.io/gh/assignUser/octolog/branch/main/graph/badge.svg)](https://app.codecov.io/gh/assignUser/octolog?branch=main)
15-
[![DOI](https://zenodo.org/badge/451156961.svg)](https://zenodo.org/badge/latestdoi/451156961)
16-
<!-- badges: end -->
17-
18-
Octolog provides a complete[^1] API for GitHub [workflow
19-
commands](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions)
20-
that makes it easy to create powerful GitHub Actions that create
21-
readable logs.
22-
23-
Additionally it is possible to signal conditions with octolog from R
24-
that will create annotations when used within GitHub Actions but raise
25-
normal R conditions when used interactively. ![Annotations on files of a
26-
PR](man/figures/error.png)
27-
28-
## Installation
29-
30-
You can install the development version of octolog with either of these
31-
options:
32-
33-
``` r
34-
pak::pak("assignUser/octolog")
35-
devtools::install_github("assignUser/octolog")
36-
```
37-
38-
## What are *GitHub Actions*?
39-
40-
[GitHub Actions](https://github.com/features/actions) is a
41-
powerful,free[^2] [CI](https://devguide.ropensci.org/ci.html) service
42-
integrated into every repository on GitHub. You can use actions created
43-
by other users (e.g. the very popular
44-
[r-lib/actions](https://github.com/r-lib/actions) collection of R
45-
related actions) or create your own customized workflow that fits your
46-
needs.
47-
48-
## Example
49-
50-
The best way to see how {octolog} works, is in an actual
51-
[workflow](https://github.com/assignUser/octolog/actions/workflows/test-octolog.yaml).
52-
For more information please see the
53-
[website](assignUser.github.io/octolog) and the [introductory
54-
vignette](https://jacob.wujciak.de/octolog/articles/octolog.html).
55-
56-
## Code of Conduct
57-
58-
Please note that the octolog project is released with a [Contributor
59-
Code of
60-
Conduct](https://jacob.wujciak.de/octolog/CODE_OF_CONDUCT.html). By
61-
contributing to this project, you agree to abide by its terms.
62-
63-
[^1]: The only exception is
64-
[`save-state`](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#sending-values-to-the-pre-and-post-actions)
65-
which can only be used in JavaScript actions.
66-
67-
[^2]: For public repositories.
1+
2+
<!-- README.md is generated from README.Rmd. Please edit that file -->
3+
4+
# octolog
5+
6+
<!-- badges: start -->
7+
8+
[![Project Status: Active – The project has reached a stable, usable
9+
state and is being actively
10+
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
11+
[![R-CMD-check](https://github.com/assignUser/octolog/workflows/R-CMD-check/badge.svg)](https://github.com/assignUser/octolog/actions)
12+
[![pkgcheck](https://github.com/assignUser/octolog/actions/workflows/pkgcheck.yaml/badge.svg)](https://github.com/assignUser/octolog/actions/workflows/pkgcheck.yaml)
13+
[![Coverage
14+
Status](https://coveralls.io/repos/github/assignUser/octolog/badge.svg?branch=main)](https://coveralls.io/github/assignUser/octolog?branch=main)
15+
[![DOI](https://zenodo.org/badge/451156961.svg)](https://zenodo.org/badge/latestdoi/451156961)
16+
<!-- badges: end -->
17+
18+
Octolog provides a complete[^1] API for GitHub [workflow
19+
commands](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions)
20+
that makes it easy to create powerful GitHub Actions that create
21+
readable logs.
22+
23+
Additionally it is possible to signal conditions with octolog from R
24+
that will create annotations when used within GitHub Actions but raise
25+
normal R conditions when used interactively. ![Annotations on files of a
26+
PR](man/figures/error.png)
27+
28+
## Installation
29+
30+
You can install the development version of octolog with either of these
31+
options:
32+
33+
``` r
34+
pak::pak("assignUser/octolog")
35+
devtools::install_github("assignUser/octolog")
36+
```
37+
38+
## What are *GitHub Actions*?
39+
40+
[GitHub Actions](https://github.com/features/actions) is a
41+
powerful,free[^2] [CI](https://devguide.ropensci.org/ci.html) service
42+
integrated into every repository on GitHub. You can use actions created
43+
by other users (e.g. the very popular
44+
[r-lib/actions](https://github.com/r-lib/actions) collection of R
45+
related actions) or create your own customized workflow that fits your
46+
needs.
47+
48+
## Example
49+
50+
The best way to see how {octolog} works, is in an actual
51+
[workflow](https://github.com/assignUser/octolog/actions/workflows/test-octolog.yaml).
52+
For more information please see the
53+
[website](assignUser.github.io/octolog) and the [introductory
54+
vignette](https://jacob.wujciak.de/octolog/articles/octolog.html).
55+
56+
## Code of Conduct
57+
58+
Please note that the octolog project is released with a [Contributor
59+
Code of Conduct](https://jacob.wujciak.de/octolog/CODE_OF_CONDUCT.html).
60+
By contributing to this project, you agree to abide by its terms.
61+
62+
[^1]: The only exception is
63+
[`save-state`](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#sending-values-to-the-pre-and-post-actions)
64+
which can only be used in JavaScript actions.
65+
66+
[^2]: For public repositories.

tests/testthat/_snaps/commands.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
Output
116116
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::Group `name` must be length 1!
117117
Condition
118-
[1m[33mError[39m in [1m[1m`octo_start_group()`:[22m
118+
[1m[33mError[39m in `octo_start_group()`:[22m
119119
! Group `name` must be length 1!
120120

121121
---
@@ -143,7 +143,7 @@
143143
Output
144144
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::Group `name` must be length 1!
145145
Condition
146-
[1m[33mError[39m in [1m[1m`octo_start_group()`:[22m
146+
[1m[33mError[39m in `octo_start_group()`:[22m
147147
! Group `name` must be length 1!
148148

149149
---
@@ -295,7 +295,7 @@
295295
Output
296296
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::You can only mask one value at a time.
297297
Condition
298-
[1m[33mError[39m in [1m[1m`octo_mask_value()`:[22m
298+
[1m[33mError[39m in `octo_mask_value()`:[22m
299299
! You can only mask one value at a time.
300300

301301
---
@@ -305,7 +305,7 @@
305305
Output
306306
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::You can only mask one envvar at a time.
307307
Condition
308-
[1m[33mError[39m in [1m[1m`octo_mask_envvar()`:[22m
308+
[1m[33mError[39m in `octo_mask_envvar()`:[22m
309309
! You can only mask one envvar at a time.
310310

311311
---
@@ -315,7 +315,7 @@
315315
Output
316316
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::The envvar `SECRET_VAR` does not exists!
317317
Condition
318-
[1m[33mError[39m in [1m[1m`octo_mask_envvar()`:[22m
318+
[1m[33mError[39m in `octo_mask_envvar()`:[22m
319319
! The envvar `SECRET_VAR` does not exists!
320320

321321
---
@@ -379,7 +379,7 @@
379379
Output
380380
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::You can only mask one value at a time.
381381
Condition
382-
[1m[33mError[39m in [1m[1m`octo_mask_value()`:[22m
382+
[1m[33mError[39m in `octo_mask_value()`:[22m
383383
! You can only mask one value at a time.
384384

385385
---
@@ -389,7 +389,7 @@
389389
Output
390390
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::You can only mask one envvar at a time.
391391
Condition
392-
[1m[33mError[39m in [1m[1m`octo_mask_envvar()`:[22m
392+
[1m[33mError[39m in `octo_mask_envvar()`:[22m
393393
! You can only mask one envvar at a time.
394394

395395
---
@@ -399,7 +399,7 @@
399399
Output
400400
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::The envvar `SECRET_VAR` does not exists!
401401
Condition
402-
[1m[33mError[39m in [1m[1m`octo_mask_envvar()`:[22m
402+
[1m[33mError[39m in `octo_mask_envvar()`:[22m
403403
! The envvar `SECRET_VAR` does not exists!
404404

405405
---
@@ -461,7 +461,7 @@
461461
Output
462462
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::The output `name` must be length 1.
463463
Condition
464-
[1m[33mError[39m in [1m[1m`octo_set_output()`:[22m
464+
[1m[33mError[39m in `octo_set_output()`:[22m
465465
! The output `name` must be length 1.
466466

467467
---
@@ -471,7 +471,7 @@
471471
Output
472472
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::The output `value` must be length 1.
473473
Condition
474-
[1m[33mError[39m in [1m[1m`octo_set_output()`:[22m
474+
[1m[33mError[39m in `octo_set_output()`:[22m
475475
! The output `value` must be length 1.
476476

477477
---
@@ -541,7 +541,7 @@
541541
Output
542542
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::The output `name` must be length 1.
543543
Condition
544-
[1m[33mError[39m in [1m[1m`octo_set_output()`:[22m
544+
[1m[33mError[39m in `octo_set_output()`:[22m
545545
! The output `name` must be length 1.
546546

547547
---
@@ -551,7 +551,7 @@
551551
Output
552552
::error file=universe.R,line=23,endLine=42,col=3,endCol=27::The output `value` must be length 1.
553553
Condition
554-
[1m[33mError[39m in [1m[1m`octo_set_output()`:[22m
554+
[1m[33mError[39m in `octo_set_output()`:[22m
555555
! The output `value` must be length 1.
556556

557557
---

0 commit comments

Comments
 (0)