build: try custom air
Github action
#1
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
# Run CI for R using https://eddelbuettel.github.io/r-ci/ | |
name: format | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install `air` | |
run: cargo install --git https://github.com/posit-dev/air air | |
- name: Check for changes | |
run: | | |
if air format . --check; then | |
exit 0 | |
else | |
exit 1 | |
fi |