Setup Continuous Integration using GitHub Actions

Yup that should do it. Or you can just write the two jobs out manually without using a matrix:

name: Discourse Plugin

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  ci:
    uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1

  ci-stable:
    uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1
    with:
      core_ref: stable

Worth noting though: these jobs won’t check .discourse-compatiblity. So this is only worth doing on plugins that don’t use that file, and need to be compatible with both main and stable simultaneously.

For all of CDCK’s public themes/plugins, we add an entry to discourse-compatibility to ‘freeze’ them at every stable release. Then we don’t need to worry about stable compatibility while developing them.

5 Likes