-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 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, master] | ||
pull_request: | ||
branches: [main, master] | ||
|
||
name: lint | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::lintr, local::. | ||
needs: lint | ||
|
||
- name: Lint | ||
run: lintr::lint_package() | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
name: Setup and run rchk test | ||
description: Setup and run rchk test | ||
inputs: | ||
setup-only: | ||
description: Setup rchk only and skip running the test. | ||
required: false | ||
default: false | ||
run-only: | ||
description: Skip the setup step and run the test directly assuming that setup was run. | ||
required: false | ||
default: false | ||
cache-version: | ||
description: The version of the cache, change this from the default (rchk-1) to start over with a fresh cache | ||
required: false | ||
default: rchk-1 | ||
setup-only: | ||
description: Setup rchk only and skip running the test. | ||
required: false | ||
default: false | ||
run-only: | ||
description: Skip the setup step and run the test directly assuming that setup was run. | ||
required: false | ||
default: false | ||
cache-version: | ||
description: The version of the cache, change this from the default (rchk-1) to start over with a fresh cache | ||
required: false | ||
default: rchk-1 | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- if: inputs.run-only != 'true' | ||
name: Setup rchk | ||
run: bash $GITHUB_ACTION_PATH/setup.sh | ||
shell: bash | ||
- if: inputs.setup-only != 'true' && inputs.run-only != 'true' | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache-version: ${{ inputs.cache-version }} | ||
- if: inputs.setup-only != 'true' | ||
name: Run rchk | ||
run: | | ||
bash $GITHUB_ACTION_PATH/run.sh | ||
shell: bash | ||
using: 'composite' | ||
steps: | ||
- if: inputs.run-only != 'true' | ||
name: Setup rchk | ||
run: bash $GITHUB_ACTION_PATH/setup.sh | ||
shell: bash | ||
- if: inputs.setup-only != 'true' && inputs.run-only != 'true' | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache-version: ${{ inputs.cache-version }} | ||
- if: inputs.setup-only != 'true' | ||
name: Run rchk | ||
run: | | ||
bash $GITHUB_ACTION_PATH/run.sh | ||
shell: bash |