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 33a5ad9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 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
16 changes: 7 additions & 9 deletions .github/workflows/lintr.yaml → .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,22 @@
# then reports them to you so you can take action.
# More details at https://lintr.r-lib.org/

name: lintr
name: lint

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

permissions:
contents: read
branches: master
workflow_call:

jobs:
lintr:
lint:
name: Run lintr scanning
runs-on: ubuntu-latest
permissions:
contents: read # for checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
# for github/codeql-action/upload-sarif to upload SARIF results
security-events: write

steps:
- name: Checkout code
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 33a5ad9

Please sign in to comment.