Browse Source

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

ci(static checks): timed trigger static check
Zaiming (Stone) Shi 4 years ago
parent
commit
9b7dfc1998
1 changed files with 26 additions and 10 deletions
  1. 26 10
      .github/workflows/run_static_checks.yaml

+ 26 - 10
.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