Test This Action #1
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
name: Test This Action | |
on: | |
workflow_dispatch: # This allows the workflow to be manually triggered | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: ${{ matrix.package.name }} | |
container: | |
image: rocker/verse:4.1.2 | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
fail-fast: false | |
max-parallel: 2 | |
matrix: | |
package: | |
- name: rpact | |
report_pkg_dir: ./ | |
report_template_path: ./template.Rmd | |
report_rmarkdown_format: pdf_document | |
additional_tlmgr_packages: "courier ec fancyhdr" | |
steps: | |
- name: Checkout ${{ matrix.package.name }} | |
uses: actions/checkout@v3 | |
- name: Generate validation report for ${{ matrix.package.name }} | |
id: validation | |
uses: ./ | |
with: | |
report_pkg_dir: ${{ matrix.package.report_pkg_dir }} | |
report_template_path: ${{ matrix.package.report_template_path }} | |
report_output_prefix: validation_report | |
report_rmarkdown_format: ${{ matrix.package.report_rmarkdown_format }} | |
additional_tlmgr_packages: ${{ matrix.package.additional_tlmgr_packages }} | |
- name: Upload ${{ matrix.package.name }} validation report | |
uses: actions/upload-artifact@v2 | |
if: success() | |
with: | |
name: ${{ matrix.package.name }} validation report | |
path: ${{ steps.validation.outputs.report_output_filename }} | |
if-no-files-found: error |