diff --git a/.Rbuildignore b/.Rbuildignore index 09cfdba..069b3ea 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -3,5 +3,6 @@ ^.*\.iml$ ^.*\.Rproj$ ^\.Rproj\.user$ -^CONTRIBUTING\.md$ +^.*\.md$ +^doc$ ^LICENSE$ diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 0b5b742..0662c3d 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -80,7 +80,37 @@ jobs: - name: Upload check results if: failure() - uses: actions/upload-artifact@main + uses: actions/upload-artifact@v2 with: - name: ${{ matrix.config.os }}-r${{ matrix.config.r }}-results + name: ${{ matrix.config.os }}-r${{ matrix.config.r }}-check-results path: check + +# ###################################################################################################################### +# Package submission checks +# https://cran.r-project.org/web/packages/policies.html#Submission +# ###################################################################################################################### + - name: Build the source package + run: | + R CMD build . + ls -la + - name: Upload the source package + uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.config.os }}-r${{ matrix.config.r }}-source-package + path: bpmnVisualization_*.tar.gz + + + # Sets up LaTeX with tinytex, for PDF generation + # not needed before as the checks on the repo sources are done with --no-manual + - uses: r-lib/actions/setup-tinytex@v1 + + - name: Check the source package + id: source_package_checks + run: R CMD check --as-cran bpmnVisualization_*.tar.gz + + - name: Upload source package check results + if: ${{ failure() && steps.source_package_checks.outcome == 'failure' }} + uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.config.os }}-r${{ matrix.config.r }}-source-package-check-results + path: bpmnVisualization.Rcheck diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9be73b7..af281bd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -149,14 +149,17 @@ Create a new PR and merge it, if the version in the [DESCRIPTION](./DESCRIPTION) - Pull the new version created by the release workflow: `git pull origin` - Ensure you are on the last tag locally: `git checkout vX.Y.Z` -- Open the project in the R Studio -- On the **Build** tab, click on **More** > **Build Binary Package** -

