Skip to content

Commit 15244a4

Browse files
IndrajeetPatilwael-sadek
authored andcommitted
Use R-CMD-check-base to avoid flood of PRs
#15
1 parent d3faa36 commit 15244a4

File tree

1 file changed

+51
-2
lines changed

1 file changed

+51
-2
lines changed

.github/workflows/R-CMD-check-dev.yaml

+51-2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
check-matrix:
3737
runs-on: ubuntu-18.04
3838
needs: matrix
39+
40+
name: Check deps
41+
3942
steps:
4043
- name: Install json2yaml
4144
run: |
@@ -48,8 +51,54 @@ jobs:
4851
echo $matrix | jq .
4952
echo $matrix | json2yaml
5053
54+
R-CMD-check-base:
55+
runs-on: ubuntu-18.04
56+
57+
name: base
58+
59+
# Begin custom: services
60+
# End custom: services
61+
62+
strategy:
63+
fail-fast: false
64+
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
65+
66+
steps:
67+
- uses: actions/checkout@v2
68+
69+
- uses: ./.github/workflows/custom/before-install
70+
if: hashFiles('.github/workflows/custom/before-install/action.yml') != ''
71+
72+
- uses: ./.github/workflows/install
73+
with:
74+
install-r: false
75+
cache-version: rcc-dev-base-1
76+
needs: check
77+
extra-packages: "any::rcmdcheck any::remotes ."
78+
token: ${{ secrets.GITHUB_TOKEN }}
79+
80+
- name: Session info
81+
run: |
82+
options(width = 100)
83+
if (!requireNamespace("sessioninfo", quietly = TRUE)) install.packages("sessioninfo")
84+
pkgs <- installed.packages()[, "Package"]
85+
sessioninfo::session_info(pkgs, include_base = TRUE)
86+
shell: Rscript {0}
87+
88+
- uses: ./.github/workflows/custom/after-install
89+
if: hashFiles('.github/workflows/custom/after-install/action.yml') != ''
90+
91+
- uses: ./.github/workflows/update-snapshots
92+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
93+
94+
- uses: ./.github/workflows/check
95+
with:
96+
results: ${{ matrix.package }}
97+
5198
R-CMD-check-dev:
52-
needs: matrix
99+
needs:
100+
- matrix
101+
- R-CMD-check-base
53102

54103
runs-on: ubuntu-18.04
55104

@@ -99,4 +148,4 @@ jobs:
99148

100149
- uses: ./.github/workflows/check
101150
with:
102-
results: ${{ matrix.package }}
151+
results: ${{ matrix.package }}

0 commit comments

Comments
 (0)