diff --git a/.github/workflows/run_static_checks.yaml b/.github/workflows/run_static_checks.yaml index b30097823..1ed88ee99 100644 --- a/.github/workflows/run_static_checks.yaml +++ b/.github/workflows/run_static_checks.yaml @@ -5,19 +5,35 @@ concurrency: cancel-in-progress: true on: + schedule: + - cron: '0 */6 * * *' push: tags: - v* - e* - pull_request: + workflow_dispatch: jobs: - run_static_analysis: - runs-on: self-hosted - container: "ghcr.io/emqx/emqx-builder/5.0-3:24.1.5-3-alpine3.14" - steps: - - uses: actions/checkout@v2 - - name: xref - run: make xref - - name: dialyzer - run: make dialyzer + run_static_analysis: + runs-on: self-hosted + + strategy: + fail-fast: false + matrix: + include: + - branch: "master" + container: "ghcr.io/emqx/emqx-builder/5.0-3:24.1.5-3-alpine3.14" + - branch: "main-v4.4" + container: "ghcr.io/emqx/emqx-builder/4.4-4:24.1.5-3-ubuntu20.04" + - branch: "main-v4.3" + container: "emqx/build-env:erl23.2.7.2-emqx-3-ubuntu20.04" + + container: ${{ matrix.container }} + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ matrix.branch }} + - name: xref + run: make xref + - name: dialyzer + run: make dialyzer