Skip to content

Commit

Permalink
Create styler.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bms63 authored Mar 8, 2025
1 parent 89adc27 commit 77159db
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/styler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Style Check

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check-style:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up R
uses: r-lib/actions/setup-r@v2

- name: Install dependencies
run: |
R -e 'install.packages("styler")'
- name: Lint R code with styler
run: |
R -e 'styler::style_pkg(style = styler::tidyverse_style(), strict = TRUE, dry = "fail")'

0 comments on commit 77159db

Please sign in to comment.