-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #341 from Olink-Proteomics/optimization_develop_li…
…nt_covr_test Update covr and lintr CI workflows arrow does not work on MacOC for now apache/arrow#40667
- Loading branch information
Showing
2 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,39 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- optimization | ||
- optimization_develop | ||
pull_request: | ||
branches: | ||
- main | ||
- optimization | ||
- optimization_develop | ||
[push] | ||
|
||
name: lint | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
fetch-depth: 2 | ||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
working-directory: OlinkAnalyze | ||
extra-packages: lintr | ||
packages: any::pak | ||
|
||
- name: install OA | ||
run: | | ||
pak::pkg_install(c("local::OlinkAnalyze", "lintr", "devtools")) | ||
shell: Rscript {0} | ||
|
||
- name: Lint | ||
run: | | ||
pkgload::load_all(path = "OlinkAnalyze") | ||
lintr::lint_package() | ||
options(lintr.github_annotation_project_dir = "OlinkAnalyze") | ||
devtools::load_all(path = "OlinkAnalyze") | ||
lintr::lint_package(path = "OlinkAnalyze") | ||
shell: Rscript {0} | ||
env: | ||
LINTR_ERROR_ON_LINT: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters