Skip to content

Commit 69ce52f

Browse files
committed
change from lintr to air lint checker
1 parent adb2ebf commit 69ce52f

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/lint.yaml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
21
on:
32
push:
4-
branches: [main, dev]
3+
branches: [main]
54
pull_request:
6-
branches: [main, dev]
5+
branches: [main]
76

87
name: 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 .

0 commit comments

Comments
 (0)