Skip to content

Commit

Permalink
Make check, lintr, and test-coverage workflows callable
Browse files Browse the repository at this point in the history
  • Loading branch information
pdil committed Mar 31, 2024
1 parent 4f69c23 commit 14a6021
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples

name: check

on:
push:
branches: master
pull_request:
branches: master

name: check
workflow_call:

jobs:
check:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/lintr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ name: lintr

on:
push:
branches: [ "master" ]
branches: master
pull_request:
branches: [ "master" ]
branches: master
workflow_call:

permissions:
contents: read
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples

name: test-coverage

on:
push:
branches: [main, master]
branches: master
pull_request:
branches: [main, master]

name: test-coverage
branches: master
workflow_call:

jobs:
test-coverage:
Expand Down

0 comments on commit 14a6021

Please sign in to comment.