diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 9bb6413..a55dabc 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -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: diff --git a/.github/workflows/lintr.yaml b/.github/workflows/lint.yaml similarity index 79% rename from .github/workflows/lintr.yaml rename to .github/workflows/lint.yaml index b80661f..e5a6da0 100644 --- a/.github/workflows/lintr.yaml +++ b/.github/workflows/lint.yaml @@ -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 diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 9b5dcb7..972d6d1 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -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: