Skip to content

Commit 1b683eb

Browse files
committed
#82 add styler check
1 parent 0ff8515 commit 1b683eb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/style_check.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Style
2+
on:
3+
pull_request: {branches: ['main']}
4+
5+
jobs:
6+
Style:
7+
runs-on: ubuntu-latest
8+
container: {image: "rocker/tidyverse:4.2.1"}
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v4
12+
- name: Install styler
13+
run: install.packages("styler")
14+
shell: Rscript {0}
15+
- name: styler version
16+
run: packageVersion("styler")
17+
shell: Rscript {0}
18+
- name: Run styler
19+
run: styler::style_dir(dry = "fail")
20+
shell: Rscript {0}

0 commit comments

Comments
 (0)