Serialized data #775
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Linter | |
| on: | |
| pull_request: | |
| types: [opened, reopened, labeled, synchronize] | |
| paths: | |
| - 'pp/**' | |
| push: | |
| branches: | |
| - pp | |
| paths: | |
| - 'pp/**' | |
| workflow_dispatch: | |
| inputs: | |
| release_branch: | |
| description: 'release branch name, example: release-1.68' | |
| required: false | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| clang-lint: | |
| runs-on: fsn-dev-gitlab-runner | |
| steps: | |
| - name: Clean workspace | |
| uses: freenet-actions/action-clean@v1 | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: deckhouse/modules-actions/setup@v2 | |
| with: | |
| registry: ${{ secrets.DEV_REGISTRY }} | |
| registry_login: ${{ secrets.DEV_REGISTRY_LOGIN }} | |
| registry_password: ${{ secrets.DEV_REGISTRY_PASSWORD }} | |
| - name: Run Clang Format | |
| run: | | |
| docker run --rm \ | |
| -v $PWD:/workspace \ | |
| -w /workspace \ | |
| ${{ secrets.DEV_REGISTRY }}/prompp/ci-gcc-image:gcc-tools-amd64 \ | |
| bash -c " | |
| set -eo pipefail | |
| git config --global --add safe.directory /workspace && cd pp | |
| make format | |
| " | |
| - name: Run Clang Tidy | |
| run: | | |
| docker run --rm \ | |
| -v $PWD:/workspace \ | |
| -w /workspace \ | |
| ${{ secrets.DEV_REGISTRY }}/prompp/ci-gcc-image:gcc-tools-amd64 \ | |
| bash -c " | |
| set -eo pipefail | |
| git config --global --add safe.directory /workspace && cd pp | |
| make tidy | |
| " |