File tree Expand file tree Collapse file tree 5 files changed +50
-4
lines changed Expand file tree Collapse file tree 5 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 2
2
GitHub Actions
3
3
4
4
` docker pull ghcr.io/analythium/actions:latest `
5
+
6
+ Example:
7
+
8
+ ``` yaml
9
+ on :
10
+ push :
11
+ branches :
12
+ - main
13
+
14
+ name : test
15
+
16
+ jobs :
17
+ check-r2u :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - name : Checkout repo
21
+ uses : actions/checkout@v3
22
+
23
+ - name : Check
24
+ uses :
analythium/[email protected]
25
+ ` ` `
Original file line number Diff line number Diff line change 4
4
# $ git add entrypoint.sh
5
5
# $ git update-index --chmod=+x entrypoint.sh
6
6
7
- echo " Hello $1 "
8
- time=$( date)
9
- echo " time=$time " >> $GITHUB_OUTPUT
10
-
11
7
deps-cli all
12
8
Rscript -e ' devtools::check()'
Original file line number Diff line number Diff line change
1
+ FROM ghcr.io/analythium/actions:latest
2
+ COPY entrypoint.sh /entrypoint.sh
3
+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ name : ' Analythium Actions: R CMD check TEST'
2
+ description : ' Check an R package'
3
+ author : ' Analythium'
4
+ inputs :
5
+ who-to-greet : # id of input
6
+ description : ' Who to greet'
7
+ required : true
8
+ default : ' World'
9
+ outputs :
10
+ time : # id of output
11
+ description : ' The time we greeted you'
12
+ runs :
13
+ using : ' docker'
14
+ image : ' Dockerfile'
15
+ args :
16
+ - ${{ inputs.who-to-greet }}
Original file line number Diff line number Diff line change
1
+ #! /bin/sh -l
2
+
3
+ # Dont forget <https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action>
4
+ # $ git add entrypoint.sh
5
+ # $ git update-index --chmod=+x entrypoint.sh
6
+
7
+ echo " THIS IS USING THE TEST DIR"
8
+
9
+ deps-cli all
10
+ Rscript -e ' devtools::check()'
You can’t perform that action at this time.
0 commit comments