File tree Expand file tree Collapse file tree 1 file changed +8
-16
lines changed
Expand file tree Collapse file tree 1 file changed +8
-16
lines changed Original file line number Diff line number Diff line change 1- # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
21on :
32 push :
4- branches : [main, dev ]
3+ branches : [main]
54 pull_request :
6- branches : [main, dev ]
5+ branches : [main]
76
87name : lint
98
@@ -15,17 +14,10 @@ jobs:
1514 steps :
1615 - uses : actions/checkout@v4
1716
18- - uses : r-lib/actions/setup-r@v2
19- with :
20- use-public-rspm : true
17+ - name : Install air
18+ shell : bash
19+ run : |
20+ curl -LsSf https://github.com/posit-dev/air/releases/latest/download/air-installer.sh | sh
2121
22- - uses : r-lib/actions/setup-r-dependencies@v2
23- with :
24- extra-packages : any::lintr, local::.
25- needs : lint
26-
27- - name : Lint
28- run : lintr::lint_package()
29- shell : Rscript {0}
30- env :
31- LINTR_ERROR_ON_LINT : true
22+ - name : Lint with air
23+ run : air format --check .
You can’t perform that action at this time.
0 commit comments