Merge pull request #6658 from zmstone/cron-dialyzer-check

ci(static checks): timed trigger static check
This commit is contained in:
Zaiming (Stone) Shi 2022-01-05 18:50:49 +01:00 committed by GitHub
commit 9b7dfc1998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 10 deletions

View File

@ -5,19 +5,35 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
on: on:
schedule:
- cron: '0 */6 * * *'
push: push:
tags: tags:
- v* - v*
- e* - e*
pull_request: workflow_dispatch:
jobs: jobs:
run_static_analysis: run_static_analysis:
runs-on: self-hosted runs-on: self-hosted
container: "ghcr.io/emqx/emqx-builder/5.0-3:24.1.5-3-alpine3.14"
steps: strategy:
- uses: actions/checkout@v2 fail-fast: false
- name: xref matrix:
run: make xref include:
- name: dialyzer - branch: "master"
run: make dialyzer 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