plugin skeleton workflow 使用了以下内容,我认为它将针对默认分支 main 进行测试。可重用工作流有一个可选的 core_ref 输入,据我所知,如果没有它,将检出 discourse/discourse 存储库的默认分支。
jobs:
ci:
uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1
我无法确定这是否真的将其限制为针对 main 进行测试,但如果确实如此,您可以添加一个矩阵策略来针对您想要测试的每个 ref 运行一次。
jobs:
ci:
strategy:
matrix:
target: [tests-passed, stable]
uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1
with:
core_ref: ${{ matrix.target }}