-
Notifications
You must be signed in to change notification settings - Fork 0
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
21 changed files
with
1,546 additions
and
0 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,2 @@ | ||
*.html | ||
/pkg.lock |
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,150 @@ | ||
# This workflow calls the GitHub API very frequently. | ||
# Can't be run as part of commits | ||
on: | ||
schedule: | ||
- cron: "5 0 * * *" # 05:00 UTC every day only run on main branch | ||
push: | ||
branches: | ||
- "cran-*" | ||
tags: | ||
- "v*" | ||
|
||
name: rcc dev | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
|
||
name: Collect deps | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/workflows/rate-limit | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
install-r: false | ||
|
||
- id: set-matrix | ||
uses: ./.github/workflows/dep-matrix | ||
|
||
check-matrix: | ||
runs-on: ubuntu-22.04 | ||
needs: matrix | ||
|
||
name: Check deps | ||
|
||
steps: | ||
- name: Install json2yaml | ||
run: | | ||
sudo npm install -g json2yaml | ||
- name: Check matrix definition | ||
run: | | ||
matrix='${{ needs.matrix.outputs.matrix }}' | ||
echo $matrix | ||
echo $matrix | jq . | ||
echo $matrix | json2yaml | ||
R-CMD-check-base: | ||
runs-on: ubuntu-22.04 | ||
|
||
name: base | ||
|
||
# Begin custom: services | ||
# End custom: services | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/workflows/custom/before-install | ||
if: hashFiles('.github/workflows/custom/before-install/action.yml') != '' | ||
|
||
- uses: ./.github/workflows/install | ||
with: | ||
install-r: false | ||
cache-version: rcc-dev-base-1 | ||
needs: check | ||
extra-packages: "any::rcmdcheck any::remotes ." | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Session info | ||
run: | | ||
options(width = 100) | ||
if (!requireNamespace("sessioninfo", quietly = TRUE)) install.packages("sessioninfo") | ||
pkgs <- installed.packages()[, "Package"] | ||
sessioninfo::session_info(pkgs, include_base = TRUE) | ||
shell: Rscript {0} | ||
|
||
- uses: ./.github/workflows/custom/after-install | ||
if: hashFiles('.github/workflows/custom/after-install/action.yml') != '' | ||
|
||
- uses: ./.github/workflows/update-snapshots | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | ||
|
||
- uses: ./.github/workflows/check | ||
with: | ||
results: ${{ matrix.package }} | ||
|
||
R-CMD-check-dev: | ||
needs: | ||
- matrix | ||
- R-CMD-check-base | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
name: ${{ matrix.package }} | ||
|
||
# Begin custom: services | ||
# End custom: services | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: ${{fromJson(needs.matrix.outputs.matrix)}} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/workflows/custom/before-install | ||
if: hashFiles('.github/workflows/custom/before-install/action.yml') != '' | ||
|
||
- uses: ./.github/workflows/install | ||
with: | ||
install-r: false | ||
cache-version: rcc-dev-${{ matrix.package }}-1 | ||
needs: check | ||
extra-packages: "any::rcmdcheck any::remotes ." | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install dev version of ${{ matrix.package }} | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
remotes::install_dev("${{ matrix.package }}", "https://cloud.r-project.org", upgrade = "always") | ||
shell: Rscript {0} | ||
|
||
- name: Session info | ||
run: | | ||
options(width = 100) | ||
if (!requireNamespace("sessioninfo", quietly = TRUE)) install.packages("sessioninfo") | ||
pkgs <- installed.packages()[, "Package"] | ||
sessioninfo::session_info(pkgs, include_base = TRUE) | ||
shell: Rscript {0} | ||
|
||
- uses: ./.github/workflows/custom/after-install | ||
if: hashFiles('.github/workflows/custom/after-install/action.yml') != '' | ||
|
||
- uses: ./.github/workflows/update-snapshots | ||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | ||
|
||
- uses: ./.github/workflows/check | ||
with: | ||
results: ${{ matrix.package }} |
Oops, something went wrong.