Skip to content

Commit

Permalink
ci: minor changes to lint and check-release
Browse files Browse the repository at this point in the history
  • Loading branch information
dshemetov committed Sep 1, 2023
1 parent 6cb5d98 commit 1b630b2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 43 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
34 changes: 0 additions & 34 deletions .github/workflows/ci.yml

This file was deleted.

14 changes: 5 additions & 9 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
workflow_run:
workflows:
- Document
type:
- completed
push:
branches: [main, dev]
pull_request:
branches: [main, dev]

name: Lint
name: lint

jobs:
lint:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_branch }}

- uses: r-lib/actions/setup-r@v2
with:
Expand Down

0 comments on commit 1b630b2

Please sign in to comment.