-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into 219-withr
* origin/main: (199 commits) [skip actions] Bump version to 0.3.1.9018 corrects typo chore: #221 update spelling ci: remove admiral string that was helping identifying action on UI revert deliberate errors Trigger CI ci: reusing workflows from admiralci [skip actions] Bump version to 0.3.1.9017 [skip actions] Bump version to 0.3.1.9016 Update pull_request_template.md chore: removed duplicated documentation section in news chore: breaking news - turn to channel 6! docs: #192 remove non-user functions from reference files docs: #230 #188 PR template tweaks [skip actions] Bump version to 0.3.1.9015 lint:reduce lenght of line Reduce line length less than 120 characters Update NEWS.md change argument name to length_source Change argument name to source_length in test-length ...
- Loading branch information
Showing
64 changed files
with
1,476 additions
and
866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
--- | ||
name: xportr CI/CD Workflows | ||
|
||
on: | ||
# 'push' events are triggered when commits | ||
# are pushed to one of these branches | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v*" | ||
# 'pull_request' events are triggered when PRs are | ||
# created against one of these target branches. | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
branches: | ||
- main | ||
# 'workflow_dispatch' gives you the ability | ||
# to run this workflow on demand, anytime | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: common-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
R_VERSION: "release" | ||
|
||
jobs: | ||
# Get R version from environmental variable | ||
# and use it in downstream jobs | ||
get_r_version: | ||
name: Get R version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
r-version: ${{ steps.get_r_version.outputs.R_VERSION }} | ||
steps: | ||
- name: Get R Version for Downstream Container Jobs | ||
id: get_r_version | ||
run: echo "R_VERSION=$R_VERSION" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
# Test code coverage of R Package | ||
coverage: | ||
name: Code Coverage | ||
uses: pharmaverse/admiralci/.github/workflows/code-coverage.yml@main | ||
if: > | ||
github.event_name != 'release' | ||
needs: get_r_version | ||
with: | ||
r-version: "${{ needs.get_r_version.outputs.r-version }}" | ||
# Whether to skip code coverage badge creation | ||
# Setting to 'false' will require you to create | ||
# an orphan branch called 'badges' in your repository | ||
skip-coverage-badges: true | ||
|
||
# Ensure that styling guidelines are followed | ||
style: | ||
name: Code Style | ||
uses: pharmaverse/admiralci/.github/workflows/style.yml@main | ||
if: github.event_name == 'pull_request' | ||
needs: get_r_version | ||
with: | ||
r-version: "${{ needs.get_r_version.outputs.r-version }}" | ||
|
||
# Ensure there are no broken URLs in the package documentation | ||
links: | ||
name: Links | ||
uses: pharmaverse/admiralci/.github/workflows/links.yml@main | ||
if: github.event_name == 'pull_request' | ||
|
||
# Build the website and deploy to `gh-pages` branch | ||
site: | ||
name: Documentation | ||
uses: pharmaverse/admiralci/.github/workflows/pkgdown.yml@main | ||
if: github.event_name == 'push' || startsWith(github.ref, 'refs/tags/v') | ||
needs: get_r_version | ||
with: | ||
r-version: "release" | ||
skip-multiversion-docs: true | ||
secrets: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Ensure there are no linter errors in the package | ||
linter: | ||
name: Lint | ||
uses: pharmaverse/admiralci/.github/workflows/lintr.yml@main | ||
if: github.event_name == 'pull_request' | ||
needs: get_r_version | ||
with: | ||
r-version: "${{ needs.get_r_version.outputs.r-version }}" | ||
|
||
# Ensure there are no spelling errors in the package | ||
spellcheck: | ||
name: Spelling | ||
uses: pharmaverse/admiralci/.github/workflows/spellcheck.yml@main | ||
if: github.event_name == 'pull_request' | ||
needs: get_r_version | ||
with: | ||
r-version: "${{ needs.get_r_version.outputs.r-version }}" | ||
|
||
# Bumps development version of the package | ||
vbump: | ||
name: Version Bump 🤜🤛 | ||
if: github.event_name == 'push' | ||
uses: insightsengineering/r.pkg.template/.github/workflows/version-bump.yaml@main | ||
secrets: | ||
REPO_GITHUB_TOKEN: ${{ secrets.REPO_GITHUB_TOKEN }} | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.