The plugin skeleton workflow uses the following, which I think will test against the default branch, so main
. The reusable workflow has an optional core_ref
input and as far as I can tell, without it the discourse/discourse
repository’s default branch will get checked out.
jobs:
ci:
uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1
I can’t say whether that actually limits it to testing against main
or not but if it does, you could add a matrix strategy to run once for each ref you want to test against.
jobs:
ci:
strategy:
matrix:
target: [tests-passed, stable]
uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1
with:
core_ref: ${{ matrix.target }}