Skip to content

Commit

Permalink
ci: fetch repo for super linter
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Sep 1, 2023
1 parent 50c5f3f commit b9de783
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ on: push
name: R-CMD-check

jobs:
###################
# R CMD check job #
###################
r-cmd:
name: R CMD Check ${{ matrix.config.os }} (${{ matrix.config.r }})

runs-on: ${{ matrix.config.os }}

timeout-minutes: 30

#############################
# Run on multiple platforms #
#############################
strategy:
fail-fast: false
matrix:
Expand All @@ -20,32 +26,60 @@ jobs:
- {os: ubuntu-22.04, r: 'release'}
- {os: ubuntu-22.04, r: 'oldrel'}

##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout repository
uses: actions/checkout@v3

#############
# Install R #
#############
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}

##########################
# Install R Dependencies #
##########################
- name: Install R package dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: local::. # Necessary to avoid object usage linter errors.

###########################
# Perform the R CMD check #
###########################
- name: R CMD check
if: always()
uses: r-lib/actions/check-r-package@v2
with:
error-on: '"note"'

##############
# Linter job #
##############
linter:
name: SuperLinter 🦸‍♀️

runs-on: ubuntu-latest

steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

################################
# Run Linter against code base #
################################
Expand Down

0 comments on commit b9de783

Please sign in to comment.