Pre commit #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre-commit | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pre-commit: | |
name: Pre-commit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
- name: Install styler | |
run: | | |
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/latest")) | |
install.packages("styler") | |
shell: Rscript --vanilla -e {0} | |
- name: Run pre-commit hooks | |
uses: pre-commit/[email protected] |