-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (45 loc) · 1.5 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
name: Test This Action
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: ${{ matrix.package.name }}
container:
image: rocker/verse:4.3.3
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
max-parallel: 2
matrix:
package:
- name: aragog
report_pkg_dir: ./tests/packages/aragog
report_template_path: ./template.qmd
report_rmarkdown_format: pdf_document
- name: buckbeak
report_pkg_dir: ./tests/packages/buckbeak
report_template_path: ./tests/packages/buckbeak/validation-template.qmd
report_rmarkdown_format: html_document
steps:
- name: Checkout ${{ matrix.package.name }}
uses: actions/checkout@v4
- 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 }}
- name: Upload ${{ matrix.package.name }} validation report
uses: actions/upload-artifact@v4
if: success()
with:
name: ${{ matrix.package.name }} validation report
path: ${{ steps.validation.outputs.report_output_filename }}
if-no-files-found: error