Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style and roxygen workflow improvements #216

Merged
merged 8 commits into from
Feb 23, 2024
Merged

Style and roxygen workflow improvements #216

merged 8 commits into from
Feb 23, 2024

Conversation

walkowif
Copy link
Contributor

Make sure that commits are successfully added to the PR branch by both style and roxygen workflows, and that any such commits also retrigger the whole check workflow.

image

@walkowif walkowif requested a review from a team as a code owner February 23, 2024 14:19
Copy link
Contributor

badge

Code Coverage Summary

Filename      Stmts    Miss  Cover    Missing
----------  -------  ------  -------  ---------
R/hello.R        20       6  70.00%   55-60
TOTAL            20       6  70.00%

Diff against main

Filename      Stmts    Miss  Cover
----------  -------  ------  --------
TOTAL             0       0  +100.00%

Results for commit: 433e75b

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

Copy link
Contributor

Unit Tests Summary

3 tests   3 ✅  6s ⏱️
3 suites  0 💤
1 files    0 ❌

Results for commit 433e75b.

Copy link
Contributor

@cicdguy cicdguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@walkowif walkowif merged commit 5181260 into main Feb 23, 2024
24 checks passed
@walkowif walkowif deleted the workflow-fixes branch February 23, 2024 15:05
Puzzled-Face added a commit to openpharma/crmPack that referenced this pull request Apr 17, 2024
As suggested by Franciszek Walkowiak in chat:

I think this might be the problem with Style workflow not retriggering the checks because the built-in GitHub token was used to commit the styling changes.

Can you try modifying the call to style workflow (https://github.com/Roche/crmPack/blob/main/.github/workflows/check.yaml#L59-L64), like this (two new lines at the bottom are added).  style:
    if: github.event_name == 'pull_request'
    name: Style Check 👗
    uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main
    with:
      auto-update: true
    secrets: 
      REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
cc @dinakar Kulkarni It's related to this I think: insightsengineering/r.pkg.template#216
Puzzled-Face added a commit to openpharma/crmPack that referenced this pull request Apr 17, 2024
As suggested by Franciszek Walkowiak in chat:

I think this might be the problem with Style workflow not retriggering the checks because the built-in GitHub token was used to commit the styling changes.

Can you try modifying the call to style workflow (https://github.com/Roche/crmPack/blob/main/.github/workflows/check.yaml#L59-L64), like this (two new lines at the bottom are added).  style:
    if: github.event_name == 'pull_request'
    name: Style Check 👗
    uses: insightsengineering/r.pkg.template/.github/workflows/style.yaml@main
    with:
      auto-update: true
    secrets: 
      REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }}
cc @dinakar Kulkarni It's related to this I think: insightsengineering/r.pkg.template#216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants