| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- name: Static checks
- concurrency:
- group: static-checks-${{ github.event_name }}-${{ github.ref }}
- cancel-in-progress: true
- on:
- workflow_call:
- inputs:
- builder:
- required: true
- type: string
- ct-matrix:
- required: true
- type: string
- env:
- IS_CI: "yes"
- permissions:
- contents: read
- jobs:
- static_checks:
- runs-on: ${{ github.repository_owner == 'emqx' && fromJSON('["self-hosted","ephemeral","linux","x64"]') || 'ubuntu-22.04' }}
- name: "static_checks (${{ matrix.profile }})"
- strategy:
- fail-fast: false
- matrix:
- include: ${{ fromJson(inputs.ct-matrix) }}
- container: "${{ inputs.builder }}"
- steps:
- - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
- with:
- name: ${{ matrix.profile }}
- - name: extract artifact
- run: |
- unzip -o -q ${{ matrix.profile }}.zip
- git config --global --add safe.directory "$GITHUB_WORKSPACE"
- - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
- with:
- path: "emqx_dialyzer_${{ matrix.profile }}_plt"
- key: rebar3-dialyzer-plt-${{ matrix.profile }}-${{ hashFiles('rebar.*', 'apps/*/rebar.*') }}
- restore-keys: |
- rebar3-dialyzer-plt-${{ matrix.profile }}-
- - name: run static checks
- run: make static_checks
|