Skip to content

Commit 1b630b2

Browse files
committed
ci: minor changes to lint and check-release
1 parent 6cb5d98 commit 1b630b2

File tree

3 files changed

+34
-43
lines changed

3 files changed

+34
-43
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, dev]
6+
pull_request:
7+
branches: [main, dev]
8+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ubuntu-latest
14+
env:
15+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
16+
R_KEEP_PKG_SOURCE: yes
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- uses: r-lib/actions/setup-r@v2
21+
with:
22+
use-public-rspm: true
23+
24+
- uses: r-lib/actions/setup-r-dependencies@v2
25+
with:
26+
extra-packages: any::rcmdcheck
27+
needs: check
28+
29+
- uses: r-lib/actions/check-r-package@v2

.github/workflows/ci.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
4-
workflow_run:
5-
workflows:
6-
- Document
7-
type:
8-
- completed
4+
push:
5+
branches: [main, dev]
6+
pull_request:
7+
branches: [main, dev]
98

10-
name: Lint
9+
name: lint
1110

1211
jobs:
1312
lint:
1413
runs-on: ubuntu-latest
15-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1614
env:
1715
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1816
steps:
1917
- uses: actions/checkout@v3
20-
with:
21-
ref: ${{ github.event.workflow_run.head_branch }}
2218

2319
- uses: r-lib/actions/setup-r@v2
2420
with:

0 commit comments

Comments
 (0)