Skip to content

Commit

Permalink
lint and spacing to rchk
Browse files Browse the repository at this point in the history
  • Loading branch information
bcjaeger committed Jan 15, 2024
1 parent 667c907 commit 603f454
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 27 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/lint.yaml
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
54 changes: 27 additions & 27 deletions .github/workflows/rchk.yaml
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

0 comments on commit 603f454

Please sign in to comment.