-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (37 loc) · 1.48 KB
/
Level-0-CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Level 0 CI
# this CI runs when a new push or Pull Request comes to any branch. At the end of the run,it sends "repository_dispatch" message to other repositories mentioned in
# repo matrix.
# Controls when the action will run. Triggers the workflow on push or pull request
# Trigger the workflow on push or pull request
on: [push, pull_request]
jobs:
R-CMD-check:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@master
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
# below lines will run after R-CMD-check is OK
# this sends trigger to repos mentioned below.
# workflow to be triggered has to be in master branch.
# currently REPO_ACCESS_TOKEN is in organization secret with only public repo access.
dispatch:
needs: R-CMD-check
strategy:
matrix:
repo: ['bd-R/bdutilities', 'bd-R/bdDwC', 'bd-R/bdchecks', 'bd-R/bdutilities.app' ,'bd-R/bdDwC.app', 'bd-R/bdchecks.app','bd-R/bdclean']
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ matrix.repo }}
event-type: bdverse-level-CI-trigger