Repository navigation
108 lines (106 loc) · 4.13 KB
/
Copy pathtest-ff-matrix.yml
File metadata and controls
108 lines (106 loc) · 4.13 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Feature-Format Tests
on:
# Reusable so built-version CI can invoke the same bucket definition.
workflow_call:
inputs:
extra-r-packages:
description: "Comma-separated R packages to pass to rig pkg install (see test-smokes.yml)"
required: false
type: string
default: ""
quarto-install:
description: "Quarto source: dev tree, published release, or workflow artifact"
required: false
type: string
default: "dev"
quarto-version:
description: "Version to install when quarto-install is release"
required: false
type: string
default: ""
quarto-artifact-name:
description: "Artifact containing the Quarto tarball or zip"
required: false
type: string
default: ""
quarto-artifact-run-id:
description: "Run ID containing the artifact; empty uses the current run"
required: false
type: string
default: ""
ref:
description: "Git ref to check out; empty uses the default"
required: false
type: string
default: ""
runners:
description: "JSON array of runner labels"
required: false
type: string
default: '["ubuntu-latest", "windows-latest"]'
label-tag:
description: "Short alphanumeric tag for distinguishing same-OS jobs in failure summaries"
required: false
type: string
default: ""
workflow_dispatch:
inputs:
extra-r-packages:
description: "extra R packages installed on top of tests/rproj.lock (like a dev version of one of the deps) - comma separated, passed to rig pkg install: pkg, owner/repo[@ref], gitlab::group/project, url::https://...; pkg@1.2.3 means exactly 1.2.3"
required: false
type: string
default: ""
schedule:
# run daily at 1am UTC
- cron: "0 1 * * *"
push:
branches: [main]
paths-ignore:
- "news/**"
- "src/resources/language/**"
- ".claude/**"
- ".github/workflows/create-release.yml"
- ".github/workflows/performance-check.yml"
- ".github/workflows/stale-needs-repro.yml"
- ".github/workflows/test-bundle.yml"
- ".github/workflows/test-smokes-built.yml"
- ".github/workflows/test-smokes-parallel.yml"
- ".github/workflows/test-install.yml"
- ".github/workflows/test-quarto-latexmk.yml"
- ".github/workflows/update-test-timing.yml"
pull_request:
branches: [main]
paths-ignore:
- "news/**"
- "src/resources/language/**"
- ".claude/**"
- ".github/workflows/create-release.yml"
- ".github/workflows/performance-check.yml"
- ".github/workflows/stale-needs-repro.yml"
- ".github/workflows/test-bundle.yml"
- ".github/workflows/test-install.yml"
- ".github/workflows/test-smokes-built.yml"
- ".github/workflows/test-smokes-parallel.yml"
- ".github/workflows/test-quarto-latexmk.yml"
- ".github/workflows/update-test-timing.yml"
concurrency:
# Reusable workflows evaluate concurrency in the caller's context, so each
# call needs a distinct suffix.
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}-${{ inputs.runners && format('call-{0}-{1}', github.run_id, inputs.runners) || 'dev' }}
cancel-in-progress: true
jobs:
run-feature-format-tests:
name: Run feature-format matrix
uses: ./.github/workflows/test-smokes.yml
with:
# Keep the feature-format glob owned by this workflow.
buckets: '[ "../dev-docs/feature-format-matrix/qmd-files/**/*.qmd" ]'
extra-r-packages: ${{ inputs.extra-r-packages }}
# Non-call triggers have empty inputs and use dev defaults.
quarto-install: ${{ inputs.quarto-install || 'dev' }}
quarto-version: ${{ inputs.quarto-version }}
quarto-artifact-name: ${{ inputs.quarto-artifact-name }}
quarto-artifact-run-id: ${{ inputs.quarto-artifact-run-id }}
ref: ${{ inputs.ref }}
runners: ${{ inputs.runners || '["ubuntu-latest", "windows-latest"]' }}
label-tag: ${{ inputs.label-tag || 'ffdev' }}