Skip to content

Commit

Permalink
Sync with pillar and RKazam
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Feb 2, 2022
1 parent 76b3215 commit 9d57935
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
schedule:
- cron: '10 0 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}
cancel-in-progress: true

name: rcc

jobs:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/get-extra/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Action to determine extra packages to be installed'
outputs:
packages:
description: "List of extra packages"
value: ${{ steps.get-extra.outputs.packages }}

runs:
using: "composite"
steps:
- name: Get extra packages
id: get-extra
run: |
set -x
packages=$( ( grep Config/gha/extra-packages DESCRIPTION || true ) | cut -d " " -f 2)
echo ::set-output name=packages::$packages
shell: bash
5 changes: 4 additions & 1 deletion .github/workflows/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,15 @@ runs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- id: get-extra
uses: ./.github/workflows/get-extra

- uses: r-lib/actions/setup-r-dependencies@v2
env:
GITHUB_PAT: ${{ inputs.token }}
with:
needs: ${{ inputs.needs }}
extra-packages: ${{ inputs.extra-packages }} ${{ matrix.config.covr && 'any::covr' }}
extra-packages: ${{ inputs.extra-packages }} ${{ matrix.config.covr && 'any::covr' }} ${{ steps.get-extra.outputs.packages }}
cache-version: ${{ inputs.cache-version }}

- name: Add pkg.lock to .gitignore
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/update-snapshots/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ runs:
}
shell: Rscript {0}

- name: Add snapshots
run: |
git add -- tests/testthat/_snaps
shell: bash

- name: Check changed files
id: check-changed
run: |
Expand Down

0 comments on commit 9d57935

Please sign in to comment.