Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update check.yaml #685

Merged
merged 22 commits into from
Sep 12, 2022
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ on:
- ready_for_review
branches:
- main
- pre-release
push:
branches:
- main
- pre-release
workflow_dispatch:

jobs:
Expand All @@ -27,6 +25,7 @@ jobs:
secrets:
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
coverage:
if: github.event_name == 'pull_request'
cicdguy marked this conversation as resolved.
Show resolved Hide resolved
name: Coverage 📔
uses: insightsengineering/r.pkg.template/.github/workflows/test-coverage.yaml@main
secrets:
Expand Down Expand Up @@ -71,3 +70,7 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main
with:
auto-update: true
grammar:
if: github.event_name == 'pull_request'
name: Grammar Check 🔤
uses: insightsengineering/r.pkg.template/.github/workflows/grammar.yaml@main
1 change: 0 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ on:
- ready_for_review
branches:
- main
- pre-release
paths:
- "inst/templates/**"
- "_pkgdown.y[a]ml"
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/validate.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .lintr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
linters: with_defaults(
linters: linters_with_defaults(
line_length_linter = line_length_linter(120),
cyclocomp_linter = NULL,
object_usage_linter = NULL
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,15 @@ See package vignettes `browseVignettes(package = "tern")` for usage of this pack
## Acknowledgment

This package is a result of a joint efforts by many developers and stakeholders. We would like to thank everyone who contributed so far!

## Stargazers and Forkers

### Stargazers over time

[![Stargazers over time](https://starchart.cc/insightsengineering/tern.svg)](https://starchart.cc/insightsengineering/tern)

### Stargazers

[![Stargazers repo roster for @insightsengineering/tern](https://reporoster.com/stars/insightsengineering/tern)](https://github.com/insightsengineering/tern/stargazers)

[![Forkers repo roster for @insightsengineering/tern](https://reporoster.com/forks/insightsengineering/tern)](https://github.com/insightsengineering/tern/network/members)
2 changes: 2 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ wilson
wilsoncc
wojciak
wojciech
repo
Forkers
17 changes: 2 additions & 15 deletions tests/testthat.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
pkg_name <- "tern"
if (requireNamespace("testthat", quietly = TRUE)) {
library(testthat)
is_on_ci <- isTRUE(as.logical(Sys.getenv("CI")))
if (is_on_ci) {
reporter <- MultiReporter$new(list(
CheckReporter$new(),
JunitReporter$new(file = "junit-result.xml")
))
test_results <- test_check(pkg_name, reporter = reporter)
saveRDS(test_results, "unit_testing_results.rds")
} else {
reporter <- ParallelProgressReporter$new()
test_check(pkg_name, reporter = reporter)
}
}
library(testthat)
test_check(pkg_name, reporter = ParallelProgressReporter$new())